An error occurred while calling mysqli in phpmyadmin-php.

Source: Internet
Author: User
The command can be directly run in the command line and can be found in phpMyAdmin, but an error occurs when it is written into the program .! IMG (img.ask.csdn.netupload201601_1451922395_748358.png )! []((Im1451922406_905598.png) this is the & quot; $ SQL & quot; select * from $ table_listw phpphpmyadminmysqli

The command can be directly run in the command line and can be found in phpMyAdmin, but an error occurs in the program.


The code is this

$ SQL = "select * from $ table_list where $ length_left qq $ length_right $ textif $ t;"; $ mysqli = new mysqli ("localhost", "root", "root ", 'qq _ db'); $ mysqli-> set_charset ("utf8"); if ($ mysqli-> connect_errno) {die ("Connect Error :". $ mysqli-> connect_error);} $ result = $ mysqli-> query ($ SQL); var_dump ($ result); $ mysqli-> close (); the actual output result of the SQL statement is select * from qq_list where length (qq = 5) and qq like '% 100' and wuzheng;

Bool (false) prompt after running)

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.