Call to undefined method Mysqli::mysqli_query ()
This prompt appears:
Fatal error:call to undefined method Mysqli::mysqli_query () in
and then use
Print_r (Get_extension_funcs (' mysqli ')); print mysqli with mysqli_query function
Is there a problem with the choice statement?
$_sql = "Select
M.id,
M.admin_user,
M.login_count,
M.LAST_IP,
M.last_time,
L.level_name
From
Cms_manage as M,
Cms_level as L
where
L.level = M.level
ORDER BY
M.id ASC
Limit
0,10 ";
------to solve the idea----------------------
You're just a SQL string, and there's no execution
------to solve the idea----------------------
Call to undefined method Mysqli::mysqli_query () This error means there is really no mysqli_query function. Although you use the function to determine the mysqli_query is there, try restarting the next Apache ... Post your specific code to see
------to solve the idea----------------------
How to use object-oriented:
Mysqli::query (String $query [, int $resultmode = Mysqli_store_result])
Process-oriented usage:
Mysqli_query (mysqli $link, String $query [, int $resultmode = Mysqli_store_result])
In other words, you do not use Mysqli_query () to call, $_db->mysqli_query () will of course be wrong.