PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

maxdb_rollback> <maxdb_real_query
Last updated: Sun, 25 Nov 2007

view this page in

maxdb_report

(PECL maxdb:1.0)

maxdb_report — Enables or disables internal report functions

Description

bool maxdb_report ( int $flags )

Παραδείγματα

Example#1 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);
?>

The above examples would produce the following output:

Warning: maxdb_query(): -4004 POS(18) Unknown table name:NONEXISTINGTABLE <...>


add a note add a note User Contributed Notes
maxdb_report
There are no user contributed notes for this page.

maxdb_rollback> <maxdb_real_query
Last updated: Sun, 25 Nov 2007
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites