Re: NewB: Return New Record ID...
| From: | J.Veenhuijsen | Date: | Fri, 06 Dec 2002 08:52:28 +0000 |
| Subject: | Re: NewB: Return New Record ID... | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-23856@lists.php.net to get a copy of this message | ||
Try $last=mysql_insert_id();
Jochem
Doug Coning wrote:
Hi all, How do I do this: I need a PHP page that simply creates a "blank" record so that I have the record's ID (which is automatically generated). That same page then needs to return the record ID back so that I know what the ID is. I will later allow that record's information to be populated based on the ID it first returned. How would I do this? Thank you, thank you! Doug Coning