$query = "SELECT user_id FROM user WHERE user_name = '$user_name' AND email = '$email'"; PHP: Will this work if the table on the database has null values