Get Started

Upgrade

Where Syntax

Query

Fetch

Transaction

Advanced

Raw object

PDO object

Debug

Information

version: 1.5.1

last

Return the last query performed.

last()
Return: [string]
Like log(), but just return the last query.
$database->select("account", [
	"user_name",
	"email"
], [
	"user_id[<]" => 20
]);

$database->insert("account", [
	"user_name" => "foo",
	"email" => "foo@bar.com"
]);

echo $database->last();
// INSERT INTO "account" ("user_name", "email") VALUES ('foo', 'foo@bar.com')