Latest web development tutorials
 

PHP mysqli_debug() Function

< PHP MySQLi Reference

Example

Create a trace file in "/temp/client.trace" on the local machine:

<?php
mysqli_debug("d:t:o,/temp/client.trace");
?>

Definition and Usage

The mysqli_debug() function is used to perform debugging operations.

Note: In order to use this function, you must compile the MySQL client library to support debugging.


Syntax

mysqli_debug(message);

Parameter Description
message Required. A string that represents the debugging operation to perform

Technical Details

Return Value: TRUE
PHP Version: 5+

< PHP MySQLi Reference