ID value
| From: | Robert Morrissey | Date: | Tue, 23 Jan 2001 15:16:39 +0000 |
| Subject: | ID value | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-36198@lists.php.net to get a copy of this message | ||
Hi,
I wonder whether anyone can shed some light onto this for me...
Say I have this example insert:
$sql = "INSERT INTO songs (id,name,url) VALUES
('','Foobar','test.php?id=<id>)";
The id is autoincrement so obviously left blank, yet I'd like to put it into
the url where <id> is.
How do I go about dragging back the id even though it is being created (I
suppose) while the statement is being made -- is it possible or do I have to
do something hackish?
Sorry if that's a simple problem...
Regards,
Robert Morrissey