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

search for in the

maxdb_rollback> <maxdb_real_query
[edit] Last updated: Fri, 17 May 2013

view this page in

maxdb_report

(PECL maxdb 1.0)

maxdb_reportEnables or disables internal report functions

Descripción

bool maxdb_report ( int $flags )

Parámetros

flags

One of the MAXDB_REPORT_XXX constants.

Valores devueltos

Devuelve TRUE en caso de éxito o FALSE en caso de error.

Ejemplos

Ejemplo #1 Estilo por procedimientos

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

El resultado del ejemplo sería algo similar a:

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


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

 
show source | credits | stats | sitemap | contact | advertising | mirror sites