error

Returns the error message of the current query.

Usage:

$db->{table}->error();

Example:

$error = $db->news->error();

Returns:

// PHP FATAL ERROR: .... test is not existing

Last updated