Advertisement
Guest User

Untitled

a guest
Jun 7th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. <?
  2. session_start();
  3.  
  4. include'./include/config.php';
  5.  
  6. $login = mysql_query("select * from users where (username = '" . $_POST['username'] . "') and (password = '" . md5($_POST['password']) . "'),$db);
  7. $rowcount = mysql_num_rows($login);
  8. if ($rowcount == 1) {
  9. $_SESSION['username'] = $_POST['username'];
  10. header("Location: acp.php");
  11. }
  12. else
  13. {
  14. header("Location: index.php");
  15. }
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement