[UPHPU] returning MySQL
Timothy Humphrey
timothy.humphrey at gmail.com
Tue Feb 22 16:37:53 MST 2005
How would one return the "auto increment" number from a newly created
record automatically?
For example:
<?
$record = "INSERT INTO database VALUES ('', '$var_1','$var_2', '1',
'$var_3')";
$result = $db->query($record);
$db->commit();
?>
I would want to create another variable for the auto increment number
that the database assigned to that new entry.
Hope that makes since.
Timothy
More information about the UPHPU
mailing list