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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get identifier after INSERT new Data?

Status
Not open for further replies.

andreas123

Programmer
Nov 20, 2001
2
DE
Hello,
I work with PHP and MySQL. How can I get the identifier, which was created by MySQL (auto_increment) after creating a new row in a table with
"INSERT INTO tableName (colums) VALUES (data)"
(The data are not always unique so I need the automatic created ID of this INSERT-Query.)
regards Andreas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top