Get Started

Upgrade

Where Syntax

Query

Fetch

Transaction

Advanced

Raw object

PDO object

Debug

Information

version: 1.5.1

id

Returns the ID of the last inserted row

id()
Return: [number] The last inserted row ID.
$database->insert("account", [
	"user_name" => "foo",
	"email" => "foo@bar.com",
	"age" => 25
]);

$account_id = $database->id();