I know how to pass existing variable values between pages. But how can I design a page that adds new entries to the mySQL db and then retrieves the newly created page_id* (that’s what I’m calling it in my db) value to the another page?
*page_id is an “auto increment”/interger column in my db table
If you run
$db->insert_id()ormysql_insert_id()on the database, the id of the last (insert) query is returned.