Forum Moderators: coopster
I have tried several ways around this problem. I tried using the PHP function time() to create a timestamp and had the column in the database set to timestamp but the entries kept being inserted as just Zeros. Can anyone explain what is going on?
Thanks.
The script basically inserts a record into a table and then I need to pull out the id it created for that record. I am using the $time column to try and pull out the most recent.
$query2 = "SELECT email_id FROM massemail ORDER BY datetime LIMIT 1";
$result2 = mysql_query($query2);
$row = mysql_fetch_array($result2);
echo $row[0];
Any suggestions?