Call to undefined method Mysqli:mysqli_query (), How to solve

Source: Internet
Author: User
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.
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.