|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Query Question
Here is the last part of my MySql query $sql being the inserted stuff. How would I incorporate something like
$lastid = mysql_insert_id() into the query to I can give a value to the last inserted to use it later in the document |
|
#2
|
|||
|
|||
|
RE: Query Question
you do not need to use it in an actual query, just execute it immediatly following the insert and the $lastid variable will hold the value of the id that was assigned to the data you inserted into the table.
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Database Help > Query Question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|