From this tutorial i found a way to get the last inserted id of a specific table (with pdo).In the example
$result = $db->exec("INSERT INTO table(firstname, lastname) VAULES('John', 'Doe')");
$insertId = $db->lastInsertId();
he made a query before getting the id i would to make something like this but i want to get the id oft he last inserted entry first before doing any query.How should i tell the code that it should check the last inserted id from this table
. Any idea is appreciated.
Update
I want to get the last inserted id
of a specific table not only the last inserted id of the database