PHP mysqli_debug() Function

PHP mysqli_debug() function performs debugging operations.

Syntax

bool mysqli_debug(message);

mysqli_debug() Function Parameter

ParameterDescription
message :Required parameter. A string representing the debugging operation to perform.

mysqli_debug() Function Return Value

Return Values :Returns TRUE.

mysqli_debug() Function Example

<?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);
?>