Jump to content

[SOLVED] PHP date problem


williamZanelli

Recommended Posts

Hi guys,

 

I want to display/store the full date format in my database... such as Thu, 04 Jun 2009 18:58:56 +0100

 

My date field in the database, is "date" - type.

 

In the PHP I use the following code, and wehn echoed it prints out the right date

$date2 =date("D, d M Y H:i:s O");

 

However everytime I try to insert, mySQL this throws an error

 

Where am i going wrong?

 

Thanks in advance guys for your thoughts

 

Will

Link to comment
https://forums.phpfreaks.com/topic/160958-solved-php-date-problem/
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.