开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜