| ADOdb Library for PHP Manual | ||
|---|---|---|
| Prev | ErrorMsg | Next |
Returns the last status or error message. Returns the last status or error message. The error message is reset when Execute() is called.
This can return a string even if no error occurs. In general you do not need to call this function unless an ADOdb function returns false on an error.
Note: If debug is enabled, the SQL error message is always displayed when the Execute function is called.
Allows you to ignore errors so that StartTrans()/CompleteTrans() is not affected, nor is the default error handler called if an error occurs. Useful when you want to check if a field or table exists in a database without invoking an error if it does not exist.
Usage:
$saveErrHandlers = $conn->IgnoreErrors();
$rs = $conn->Execute("select field from some_table_that_might_not_exist");
$conn->IgnoreErrors($saveErrHandlers);
Warning: do not call StartTrans()/CompleteTrans() inside a code block that is using IgnoreErrors().
| Prev | Home | Next |
| DropSequenceD | Up | ErrorNo |