SyntaxFix
Write A Post
Hire A Developer
Questions
Use cursor.lastrowid to get the last row ID inserted on the cursor object, or connection.insert_id() to get the ID from the last insert on that connection.
cursor.lastrowid
connection.insert_id()