Advertisement
Guest User

Untitled

a guest
Jul 4th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. <?php
  2. // connect to db statements
  3.  
  4. //$email_add = $_POST['email_add'];
  5. $username = $_POST['username'];
  6. $password = $_POST['password'];
  7. //$date_email = $_POST['date_email'];
  8. //$password = md5($password);
  9.  
  10. //$result = "";
  11. $result = mysql_query("SELECT id,password FROM imp WHERE username='$username'");
  12. $row = mysql_fetch_assoc($result);
  13.  
  14. if (md5($password) == $row['password'])
  15. {
  16. // do something
  17. }
  18.  
  19.  
  20. //........statements
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement