Jump to content

Date


OriginalBoy

Recommended Posts

the mysql function CURDATE() gives the current date. eg

 

INSERT INTO user (username, pwd, date_reg) VALUES ('$usr', '$pwd', CURDATE() )

 

If you want date and time, use NOW() instead of CURDATE()

 

How would I sort it by the date and time and also what mysql type would I use to add this data in.

Link to comment
https://forums.phpfreaks.com/topic/126090-date/#findComment-652349
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.