Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ($result = mysqli_query($conn, "SELECT username, password FROM something where username => username AND password => password")) {
- $row_cnt = mysqli_num_rows($result);
- if ($result == 0) {
- //insert
- } else {
- //there username and password are already in the database
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement