PHP 手冊
前一頁 |  | 下一頁

# maxdb_report

(no version information, might be only in CVS)

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"); /* 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 <...>

前一頁 | 內容 | 下一頁
maxdb_real_query | 上一層 | maxdb_rollback