(PECL maxdb 1.0)
Enables or disables internal report functions
bool maxdb_report ( int $flags )
Parameters:
flags
One of the MAXDB_REPORT_XXX constants.
Returns:
Returns TRUE on success or FALSE on failure.
Examples:
Procedural style
<?php
/* activate reporting */
maxdb_report(MAXDB_REPORT_ERROR);
$link = maxdb_connect("localhost", "MONA", "RED", "DEMODB");
/* check connection */
if (maxdb_connect_errno()) {
printf("Connect failed: %s\n", maxdb_connect_error());
exit();
}
/* this query should report an error */
$result = maxdb_query($link,"SELECT Name FROM Nonexistingtable WHERE population > 50000");
maxdb_close($link);
?>
Please login to continue.