Jump to content

[SOLVED] Now() function


limitphp

Recommended Posts

I'm using this query:

mysql_query("INSERT INTO vote (artistID, songID, date, userID) 
		VALUES ('$artistID', '$songID', 'NOW()', '$userID')");

 

In the table when it inserts it, the date is not working.

The date type is datetime.

How do I get it to show as ex) 2008-11-04 08:10:25.

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/132322-solved-now-function/
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.