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!