abdy
|
| Posted: 09/17/2004, 4:58 AM |
|
After executing the following successfully...
$sql = "INSERT INTO `purchase` ( `email` , `date` , `add` , `area` , `name`, `num`, `product` ) VALUES ( '$email', '$tgl', '$add', '$ship', '$name', '$num', '$product'
)";
$id = $db->query($sql);
I'd like to know what was the last inserted ID.
I need help!!
|
|
|
 |
Don Safar
|
| Posted: 09/17/2004, 7:15 AM |
|
If you are using MySQL look here - http://dev.mysql.com/doc/mysql/en/Getting_unique_ID.html
If not, just use google with Last Inserted databasename.
"abdy" <abdy@forum.codecharge> wrote in message
news:5414ad1691e660@news.codecharge.com...
> After executing the following successfully...
>
>
> $sql = "INSERT INTO `purchase` ( `email` , `date` , `add` , `area` ,
`name`,
> `num`, `product` ) VALUES ( '$email', '$tgl', '$add', '$ship', '$name',
> '$num', '$product'
> )";
>
> $id = $db->query($sql);
>
> I'd like to know what was the last inserted ID.
>
> I need help!!
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
|