Well, basically here is the error:
Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, object given in
Here is my code:
function user_banned ($con, $username) {
$result = mysqli_query($con, "SELECT `banned` FROM `users` WHERE `username` = '$username'");
return(mysqli_num_rows($con) == 1) ? true : false;
}
I am not too sure what is causing this, I have seen several questions about this issue, however none of them have assisted my in finding a way to fix this issue.