开发者

Can I use get the just insert table row id, from mysql_query? [duplicate]

开发者 https://www.devze.com 2023-03-01 15:37 出处:网络
This question already has answers here: 开发者_开发问答 Closed 10 years ago. Possible Duplicate: PHP: how to get last inserted ID of a table?
This question already has answers here: 开发者_开发问答 Closed 10 years ago.

Possible Duplicate:

PHP: how to get last inserted ID of a table?

I use mysql_query() in PHP to insert a new record in my Database.

It will auto generate a row, with a user Id, can I use the result to get that Id?


mysql_insert_id()

Have you considered upgrading to PDO?

0

精彩评论

暂无评论...
验证码 换一张
取 消