Advertisement
Guest User

Untitled

a guest
Jul 12th, 2017
525
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. SELECT * from users where firstname = 'Bob' and lastname = 'Smith' and
  2. username = 'bobsmith' and email = 'bob@test.co.uk' and password = 'testing1
  3.  
  4. $firstname = $_POST['firstname'];
  5. $lastname = $_POST['lastname'];
  6. $username = $_POST['username'];
  7. $email = $_POST['email'];
  8. $password = $_POST['password'];
  9.  
  10. $query1 = "SELECT * from users where firstname = '" .
  11. $firstname .
  12. "' and lastname = '" .
  13. $lastname .
  14. "' and username = '" .
  15. $username .
  16. "' and email = '" .
  17. $email .
  18. "' and password = '" . $password;
  19.  
  20. echo "<BR>Running query ... <BR>" . $query1;
  21. $result1 = mysqli_query($cxn,$query1);
  22. $numrows1 = mysqli_affected_rows($cxn);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement