Fatal error: Call to undefined function mysqli_result()
[php]function has_access($user_id, $type) {
$user_id = (int)$user_id;
$type = (int)$type;
global $mysqli;
return (mysqli_result($mysqli->query(“SELECT COUNT(user_id
) FROM users WHERE user_id = ‘$user_id’ AND type = $type”), 0) == 1) ? true : false;
}[/php]
Could anyone rewrite into correct code?
I have lots and lots of code to convert,if anyone could help this weekend my skype is: greatempire123
I can even pay you for your help.