Build Your Own DatabaseDriven Website Using PHP amp;amp; MySQL [Electronic resources]

Kevin Yank

نسخه متنی -صفحه : 190/ 159
نمايش فراداده

mysql_insert_id

mysql_insert_id ([link_id])

This function returns the value that was automatically assigned to an AUTO_INCREMENT column in the previous INSERT query for the default or specified (link_id) MySQL connection. If no AUTO_INCREMENT value was assigned in the previous query, 0 is returned instead.