Advertisement
Guest User

Untitled

a guest
Jan 24th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. if ($result = mysqli_query($conn, "SELECT username, password FROM something where username => username AND password => password")) {
  2.  
  3. $row_cnt = mysqli_num_rows($result);
  4.  
  5. if ($result == 0) {
  6.  
  7. //insert
  8. } else {
  9. //there username and password are already in the database
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement