maxdb_real_query
maxdb_rollback
MaxDB 함수 목록
PHP Manual

# maxdb_report

(PECL maxdb 1.0)

maxdb_report — Enables or disables internal report functions

### 설명

bool maxdb_report ( int `$flags` )

### 인수

`flags`

  One of the MAXDB_REPORT_XXX constants.

### 반환값

성공할 경우 `TRUE`를, 실패할 경우 `FALSE`를 반환합니다.

### 예제

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

위 예제의 출력 예시:

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

maxdb_real_query
maxdb_rollback
MaxDB 함수 목록
PHP Manual