I am converting my old MySQL to mysqli but ran into this problem mysqli result does not work. Looked on the Internet and I founded out that it function had been change, for mysqli result is there an equivalent out there?
Here is my error
Fatal error: Call to undefined function mysqli_result() in C:\xampp\htdocs\bear_mysqli\functions\users.php on line 153
function user_exists($con,$username)
{
$username = sanitize($con,$username);
$query = mysqli_query($con,"SELECT COUNT(`user_id`)FROM `users` WHERE `username` = '$username'");
return (mysqli_result ($query, 0)== 1) ? true : false;
}