⇧
vadnica-logo
My Services About the Project Telegram O meni O meni

Get the Last Inserted ID

If we perform an INSERT on a table with a PRIMARY KEY field (which auto-increments), we can immediately retrieve the ID of the last inserted record. In our example, we will add some more fruit to the mysqli_tabela table and check which sequence number the last entry received.

EXAMPLE
RESULT
The result will be displayed here...