php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "mysqli_query"

What is the correct syntax for using mysqli_query() function in PHP?

When using the mysqli_query() function in PHP, the correct syntax requires two parameters: the database connection object and the SQL query to be exec...

What are the differences in syntax and functionality between the deprecated mysql_query() and the recommended mysqli_query() in PHP?

The issue is that the mysql_query() function is deprecated in PHP and should be replaced with mysqli_query() for improved security and functionality....

What is the difference between using mysql_query() and mysqli_query() for setting character encoding in PHP?

When setting character encoding in PHP for MySQL queries, it is recommended to use the `mysqli_query()` function instead of the deprecated `mysql_quer...

How can the error message "mysqli_query() expects at least 2 parameters, 1 given" be resolved in PHP code?

The error message "mysqli_query() expects at least 2 parameters, 1 given" occurs when the mysqli_query function is called with only one parameter inst...

What is the difference between using mysqli_connect() and mysqli_query() in PHP when fetching data from a database?

When fetching data from a database in PHP, it's important to understand the difference between mysqli_connect() and mysqli_query(). mysqli_connect() i...

Showing 11 to 15 of 388 results

‹ 1 2 3 4 5 6 7 8 9 10 ... 77 78 ›
PHP.ORG

A free knowledge base for PHP developers. Open to all.

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.