Jump to content

[SOLVED] retrieving auto_increment info


c1t1z3n

Recommended Posts

i have setup a database table with the fields id (int auto_increment)

and data (varchar) and am using the following to add records to the database:

 

      $q = "INSERT INTO database_table ('data') VALUES ('$data')";
      $result = mysql_query($q);

 

how do i determine which value the auto_increment column (id) was given when the database was updated?

Link to comment
https://forums.phpfreaks.com/topic/170664-solved-retrieving-auto_increment-info/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.