row ID number
Posted 11 March 2006 - 06:56 PM
I have a php insert query to insert some form data. Once the form has been submitted and the data added to the sql database, is there anyway to bring the auto increase ID number which is generated in the sql database?
Any help would be great.
Posted 11 March 2006 - 07:48 PM
That worked great, thanks.
Can the value be passed to another page via a session? How would that be done? Tried few things without any luck.
Thanks in advance
Posted 11 March 2006 - 08:02 PM
$_SESSION['nextid'] = mysql_insert_id();
with my php page action and then called the session name ($_SESSION['nextid']) on the next page.
Thanks anyone who helped
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users