Guest User

Untitled

a guest
Dec 9th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. <?php
  2.  
  3. session_start();
  4.  
  5. $username = $_POST['username'];
  6. $password = $_POST['password'];
  7.  
  8. if ($username&&$password)
  9. {
  10.  
  11. $connect = @mysql_connect("mysql13.freehostia.com", "josver67_blast", "blastwave101") or die("Couldn't Connnect");
  12. @mysql_select_db("josver67_blast") or die("Coudln't find db");
  13.  
  14. $query = myqsl_query("SELECT * FROM `users` WHERE `username`='$username' AND `password`='$password'");
  15. $numrows = mysql_num_rows($query);
  16.  
  17. if ($numrows!=0)
  18. {
  19. echo "You're in! <a href=\"cp.php\">Click Here</a> to enter members page";
  20. $_SESSION['username']==$username;
  21. } else
  22. die("Incorrect Username and Password");
  23.  
  24. } else
  25. die("Enter a username and password!");
  26. ?>
Add Comment
Please, Sign In to add comment