Advertisement
Guest User

Untitled

a guest
Jan 12th, 2016
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. $result = mysql_query('SELECT * FROM account WHERE username="'.$username.'" and password="'.$password.'"');
  2. if (!$result)
  3. {
  4. die ("Accoun't invalid: " . mysql_error());
  5. }
  6. $_SESSION['username'] = $username;
  7. header('Location: home.php');
  8. session_start();
  9. echo 'Welcome '.$SESSION['username'];}
  10. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement