Jump to content

About the date()


tempguy

Recommended Posts

You want to store the date in the same location you're storing the data.  I personally use the now() function to save my datetime information.

 

Then you can output that by doing:

$date = mysql_result(mysql_query("SELECT date FROM table WHERE something = something"), 0);

echo date("m/d/Y", $date);

Link to comment
https://forums.phpfreaks.com/topic/217954-about-the-date/#findComment-1131135
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.