[solved] return id of new entry

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tom.cull
Forum Commoner
Posts: 32
Joined: Tue Sep 06, 2005 9:31 am

[solved] return id of new entry

Post by tom.cull »

is there a way that I can do the following:

have a page where a user creates a new database record. once that record is created, i need mysql to somehow send back the ID (auto_inc) of the new entry so that I can pass it thru the URL to a further editing page.

thanks
Last edited by tom.cull on Fri Sep 16, 2005 9:39 am, edited 1 time in total.
User avatar
hawleyjr
BeerMod
Posts: 2170
Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA

Post by hawleyjr »

mysql_insert_id()
Post Reply