I have no idea what you're saying, but if you need the id of the latest record added to the database, use
SQL_GetInsertId. This will only give you the latest id of a row added by the
handle of the plugin, so it will return something you don't want after you restart the server. To make it consistent, you will have to run a SELECT query, such as
Quote:
|
SELECT id FROM table ORDER BY id DESC LIMIT 0,1
|