Jump to content

PHP Timestamp


sh0wtym3

Recommended Posts

I am using the following query to insert a timestamp into my database:

 

mysql_query("UPDATE table SET column=now() WHERE title='$title'");

 

Which works fine, except, the year that it inserts is 2010..? Last time I checked I'm pretty sure we're in 2008.

 

Any ideas why this is happening? (My PC is set to 2008 if you are wondering)

Link to comment
https://forums.phpfreaks.com/topic/127922-php-timestamp/
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.