Guest User

Untitled

a guest
Mar 10th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. <?php
  2. require "conn.php";
  3. $username = "username";
  4. $password = "hashedpassword";
  5. $mysql_qry = "select * from test_social_media_db where username like '$username' and hash '$password';";
  6. $result = mysqli_query($conn, $mysql_qry);
  7. if(mysqli_num_rows($result) > 0){
  8. echo "Welcome";
  9. }
  10. else{
  11. echo"login failed";
  12. }
  13.  
  14. ?>
Add Comment
Please, Sign In to add comment