PHP mysqli_debug() function performs debugging operations.
Syntax
bool mysqli_debug(message);
Parameter | Description |
---|---|
message : | Required parameter. A string representing the debugging operation to perform. |
Return Values : | Returns TRUE. |
<?php $con = mysqli_debugt("localhost","user","password","db"); if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } // Create a trace file in "/iop/temp.trace" on the local machine: mysqli_debug("d:t:o,/iop/temp.trace"); mysqli_close($con); ?>