PHP mysqli_dump_debug_info() Function

Definition

The mysqli_dump_debug_info() function dumps debugging info into the log.

Syntax

PHP mysqli_dump_debug_info() Function has the following syntax.

mysqli_dump_debug_info(connection);

Parameter

ParameterIs RequiredDescription
connectionRequired.A link identifier returned by mysqli_connect() or mysqli_init()

Return

It returns TRUE on success or FALSE on failure.

Example

The following code dumps debug info into the log.


<?php//  w  ww  .j a va2s  . com
$con=mysqli_connect("localhost","my_user","my_password","my_db");

if (mysqli_connect_errno($con)){
   echo "Failed to connect to MySQL: " . mysqli_connect_error();
}

mysqli_dump_debug_info($con);

mysqli_close($con);
?>




















Home »
  PHP Tutorial »
    Function reference »




PHP Array Functions
PHP Calendar Functions
PHP Class Functions
PHP Data Type Functions
PHP Date Functions
PHP File Functions
PHP Image Functions
PHP Math Functions
PHP MySQLi Functions
PHP SimpleXML Functions
PHP String Functions
PHP XML Functions
PHP Zip Functions