PHP Manualmaxdb_errormaxdb::error(PECL maxdb >= 1.0) maxdb_error -- maxdb::error — Returns a string description of the last error DescriptionProcedural style
string maxdb_error
( resource
$link
)Object oriented style string $maxdb->error;
The maxdb_error() function is identical to the corresponding
maxdb_errno() function in every way, except instead of returning
an integer error code the maxdb_error() function will return
a string representation of the last error to occur for the database connection
represented by the Return ValuesA string that describes the error. An empty string if no error occurred. ExamplesExample #1 Object oriented style
<?php Example #2 Procedural style
<?php The above example will output something similar to: PHP Warning: maxdb_query(): -4005 POS(8) Unknown column name:XXX [42000] Errormessgae: POS(8) Unknown column name:XXX See Also
![]() |
PHP-Index
New Tutorial entries
|