getLastInsertID() public method
Returns the ID of the last inserted row or sequence value. See also http://www.php.net/manual/en/function.PDO-lastInsertId.php.
public string getLastInsertID ( $sequenceName = '' )$sequenceName string
Name of the sequence object (required by some DBMS) return string
The row ID of the last row inserted, or the last value retrieved from the sequence object