Jump to content

[SOLVED] Insert Date into mysql


fry2010

Recommended Posts

This is a real commen problem I have seen so many questions relating to this and none of them help at all.

Does someone here know how to correctly insert dates into a mysql table?

 

I have been using this but it doesnt work:

 

      $result = $conn2->query("INSERT INTO accountuser (joined) VALUE (CURDATE())");

 

I have also tried to use UPDATE instead as I have default values assigned to the table as '0000-00-00'.

Link to comment
https://forums.phpfreaks.com/topic/146949-solved-insert-date-into-mysql/
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.