Jump to content

[SOLVED] INSERT and retrieve


Clinton

Recommended Posts

Ok, I use this code to insert a record into the db...

 

$result = mysql_query("INSERT INTO ply (did, rn, cltr, eid, jid, cdate) VALUES ('$did', '$rn', '$cltr', '$eid', '$jid', '$cdate')");

 

Now, when this inserts it does an automatic auto-increment on an 'id' column that is not listed. Is there a way that I can turn right back around after this gets inserted and get the corresponding id number?

Link to comment
https://forums.phpfreaks.com/topic/144873-solved-insert-and-retrieve/
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.