F a s d a b
Fast and simple database abstraction
last_id

integer last_id(string table [, string serial_column])

<?php
require_once("fasdab.mysql.php");

$db = new Fasdab("localhost""username""password""database");

$db->query("INSERT INTO users ( first_name ) VALUES ( 'John' )");
echo 
"John's user ID is ".$db->last_id("users""id")."<br/>\n";
?>