ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:connection:ignoreerrors

This is an old revision of the document!


ignoreErrors

Syntax
mixed function ignoreErrors(
               mixed $override
               )

Description

The function ignoreErrors() provides a way of overriding certain aspects of error handling within ADOdb. There are 2 different behaviours based on what parameters are passed.

Parameter Format

Whether used as a setter or getter, The parameter array format is as follows:

IndexDatabase SettingDescription
0raiseErrorFnAn indication the current database object error status. This flag is set automatically if a connection or executed statement fails
1_transOkAn indicator of a the current transactional status

This array is represented by $override in the options below.

1st Usage

If the function is used as ignoreErrors() or ignoreErrors(false) the following behaviour occurs:

  1. The database status is saved off in $override, as described above
  2. The raiseErrorFn flag is set to false.
  3. The function returns $override.

2nd usage

v5/reference/connection/ignoreerrors.1437340641.txt.gz · Last modified: 2017/04/21 11:34 (external edit)