Get Started

Medoo 1.4

Where Syntax

Query

Fetch

Transaction

Advanced

PDO object

Debug

Information

version: 1.4.5

error

Return error information associated with the last operation.

error()
Return: [array] an array of error information about the last operation performed
$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" }