Mysqli_query () function definition and usage summary

Source: Internet
Author: User
Tags mysql insert php mysql php mysql extension
Define and use the mysqli_query () function to execute a database query. Syntax mysqli_query (connection, query, resultmode); parameter description: connection & amp; nbsp; required, specifying the MySQL connection to be used. & Amp; nbsp; query & amp; nbsp; required to query strings. & Amp; nbsp; resultmode... defines and uses the mysqli_query () function to execute a database query. Syntax: mysqli_query (connection, query, resultmode); parameter description: connection must be available, specifying the MySQL connection to be used. Query must be a query string. Resultmode is optional. A constant. It can be any of the following values: 1. MYSQLI_USE_RESULT (use this if you need to retrieve a large amount of data) 2. MYSQLI_STORE_RESULT (default) return value: for successful SELECT, SHOW, DESCRIBE, or EXPLAIN queries, a mysqli_result object is returned. For other successful queries, TRUE is returned. If it fails,

1. PHP mysqli_query () function definition and usage

Description: defines and uses the mysqli_query () function to execute a database query. Syntax mysqli_query (connection, query, resultmode); parameter description:

2. questions about the query results using mysqli extension in php mysql

Introduction: The problem of using mysqli to extend the query results for php mysql extension background: change some of the mysql extensions in the system to mysqli extensions. Problem: Due to code staggered, the problem that mysql_fetch_array () is used to use mysqli_query () function results is found in many cases. the parameter of mysql_fetch_array () function is of the resource type, and mysqli_query ()

3. Call to undefined method mysqli: mysqli_query (). how can this problem be solved?

Introduction: Call to undefined method mysqli: mysqli_query () the following error occurs: Fatal error: Call to undefined method mysqli: mysqli_query () in and then use print_r (get_exte

4. php and mysql insert errors

Introduction: in php and mysql, it is okay to insert an error directly in mysql... when writing it to php, the following error occurs: Warning: mysqli_query () expects at least 2 parameters, 1 given in D: xampphtdocsca.

5. questions about the query results using mysqli extension in php mysql

Introduction: The problem of using mysqli to extend the query results for php mysql extension background: change some of the mysql extensions in the system to mysqli extensions. Problem: Due to code staggered, the problem that mysql_fetch_array () is used to use mysqli_query () function results is found in many cases. the parameter of mysql_fetch_array () function is of the resource type, and mysqli_query ()

[Related Q & A recommendations ]:

What does mysqli_query () function mean?

The above is the detailed description of the definition and usage of the mysqli_query () function. For more information, see other related articles in the first PHP community!

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.