Jump to content

[SOLVED] Grab Value From a Newly Inserted Record


limitphp

Recommended Posts

I need to insert a record:

mysql_query("INSERT INTO playlists (name, userID) VALUES ('$playlistName','$userID')") or die (mysql_error());

 

and then I need to insert another record that will contain the ID from the newly created record I just added.

 

How do I grab a column value from the row I just created?

 

thanks

 

 

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.