Get Started

Where Syntax

Query

Transaction

Advanced

PDO object

Debug

Information

version: 1.1.3

error

Return error information associated with the last operation.

error()
Return: [array] an array of error information about the last operation performed
The return value is array.
$database->select("bccount", [
	"user_name",
	"email"
], [
	"user_id[<]" => 20
]);

var_dump($database->error());

// array(3) { [0]=> string(5) "42S02" [1]=> int(1146) [2]=> string(36) "Table 'my_database.bccount' doesn't exist" }