Advertisement
Guest User

Untitled

a guest
Feb 16th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. `$sql="SELECT * FROM users WHERE userName='$safe_username' AND userPassword='$safe_password'";
  2. $result=mysql_query($sql);
  3. $count=mysql_fetch_assoc($result);
  4. if($count==1){
  5. session_start();
  6. $_SESSION['loggedin'] = true;
  7. $_SESSION['username'] = $safe_username;
  8. header("location:home.php");} `
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement