Hi ! You can user mysql_insert_id() for this purpose.
zareef ahmed --- Andrew Wood <[EMAIL PROTECTED]> wrote: > If the primary key in a MySQL DB is an > autoincrementing integer, is > there anyway of automatically getting it back when I > do an insert in > PHP. In other words taking the status returned by > mysql_query and > extracting the PK of the record we just entered? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > ===== Zareef Ahmed :: A PHP Developer in Delhi(India). Homepage :: http://www.zasaifi.com __________________________________ Do you Yahoo!? Vote for the stars of Yahoo!'s next ad campaign! http://advision.webevents.yahoo.com/yahoo/votelifeengine/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php