Jump to content

Inserting Date into database


Cyberspace

Recommended Posts

Im trying to add the current date in a mysql database, but im not sure if im on the right track:

 

Im using the following sql insert statement:

 

   mysql_query("INSERT INTO walker (MemberRef, WalkNo, DateJoined) VALUES ('$MemberRef', '$WalkNo', NOW()");  

 

 

Can i use date(Now) to insert the current date?

Link to comment
https://forums.phpfreaks.com/topic/100708-inserting-date-into-database/
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.