I have a php code inserting into a mysql database, the table has a primary key which is auto_increment.
Now when a new record is being added it is not know what id will be assigned to the record as it depends when the form is submitted.
but once the form is submitted i want to capture the id assiged to the current record and then display
<? php
echo "Thankyou, Information on file number $f_id has been successfully added."
?>
any sugesstions?
Capture auto_increment number
Moderator: General Moderators