I\'ve looked at the many other posts that were similar to my issue and implemented their solutions (as far as I can tell) as exactly as I could. However, every time I execut
Here's one that i wrote:
$error = false; $sql= "SELECT username FROM users WHERE username = '$username'"; $checkSQL = mysqli_query($db, $checkSQL); if(mysqli_num_rows($checkSQL) != 0) { $error = true; echo 'Username taken.'; }
Works like a charm!