Jump to content

view previous entry


takeiteasy

Recommended Posts

yeah use mysql_insert_id(); to select the record last inserted and then call it using this

$inserted_id = mysql_insert_id();
     
$sql = "SELECT * FROM table WHERE id='$inserted_id ' LIMIT 1";
$query = mysql_query($sql ) or die(mysql_error());

while($array= mysql_fetch_array($query))
{
$array['fieldnames'];
}
Link to comment
https://forums.phpfreaks.com/topic/14275-view-previous-entry/#findComment-56092
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.