spewn
Programmer
- May 7, 2001
- 1,034
i have a table that has a column that is using auto_increment, and also is the primary key for table. i am creating new rows using:
[code}
$dbh9 = DBI->connect('dbi:mysql:gtc','','');
$sth9 = $dbh9->prepare("INSERT INTO orders VALUES(0,'$actualCart')");
$sth9->execute;
[/code]
no problem. however, i need to retrieve the new number value assigned once that row is created. how do i do that? (just short of having another unique identifier and searching for that, then getting the number of row)
any ideas?
- g