Jump to content

Timestamp updating with zeros in database using NOW()


interimhelp

Recommended Posts

mysql_query("UPDATE ". USERS_TABLE ." SET last_login = 'TIMESTAMP_CURRENT()' WHERE uid = '$_SESSION[uid]'");

 

I've used "NOW()" to replace "TIMESTAMP_CURRENT()"  and also have changed the database type to text and sent "text" which it does update but I cannot get it to update with the date and time it only sends all zeros...any ideas???

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.