How can I go about saving lastInsertRowId to a global variable that I can access later to UPDATE a column in my database? I know I am only able to access lastInsertRowId at the point of trigger, but how can I save that and be able to access it in another location in my program.
↧