Hi! PHP & SQL!
| From: | Dana Holt | Date: | Thu, 26 Jul 2001 00:17:25 +0000 |
| Subject: | Hi! PHP & SQL! | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-59644@lists.php.net to get a copy of this message | ||
Hello everyone,
I am very new to PHP (only 2 days now!), and I am having a problem with
MySQL.
This is probably simple.
Ok, I insert a new row into a database that has an AUTO_INCREMENT key
defined.
How to get the value of the AUTO_INCREMENT field of the row I just inserted?
My database doesn't have any other columns that are guaranteed to be 100%
unique. I need this value to create a file with data related to the row.
Thanks in advance for any help!