I have ran this code on various PHP validators on the internet its says that these two functions (mysql_query, mysql_result) have been deprecated in the current version of PHP.
The following piece of code is not executing properly even though the username and password I type into the login form are the exact same as what is in the database/phpMyAdmin?
<?php
function user_exists($username){
$username = sanitize($username);
return (mysql_result(mysql_query("SELECT COUNT(user_Id) FROM `users` WHERE `username` = '$username'"), 0) == 1) ? true : false;
}
?>