Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieve auto increment value 1

Status
Not open for further replies.

white605

Technical User
Jan 20, 2003
394
US
When we insert a record with sql and the record has an autoincrement field for id how do we return the value of the id for us in the same script to enable us to select that same record back for further processing?
wjwjr

This old world keeps spinning round - It's a wonder tall trees ain't layin' down
 
mysql_insert_id()



----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
thanks for your swift reply, we are transitioning from in house vfp with record pointers and get stumped every once in a while.
wjwjr

This old world keeps spinning round - It's a wonder tall trees ain't layin' down
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top