PHP mysqli_info() Function

The mysqli_info() function returns information about the most recently executed query.

This function works with the following query types:

  • INSERT INTO...SELECT...
  • INSERT INTO...VALUES (...),(...),(...)
  • LOAD DATA INFILE ...
  • ALTER TABLE ...
  • UPDATE ...
  • Example -

    Return information about the most recently executed query:

    ParameterDescription
    connectionRequired. Specifies the MySQL connection to use