Posted by listerofsmeg01 on 09/25/05 23:18
Hi all,
VERY new to php and mysql.
I have an autoincrement ID field that I want to retrieve after doing an
INSERT with msql_query.
I've tried doing a mysql_fetch_array on the result set returned from
the insert, but it doesn't like it.
What is the best way to get the record just inserted. Do I really need
to query the entire table again and order by ID? That seems incredibly
wasteful.
Thanks,
Lister
Navigation:
[Reply to this message]
|