Jump to content

Get date of file from server

Recommended Posts

I am having trouble getting the date to display properly from the server, I have tried many different ways and it is just not working.My table structure is set to TIMESTAMP and when I all something new through phpmyadmin I set the time to NOW. So it posts the current time of when I created the file. Now my issue is getting it to display properly.

//$timestamp = $row['uptime'];//$file = $row['uptime'];//$lastmod = date("m-d-y", time($file));$uptime = time($row['uptime']);//echo date("m-d-y",$timestamp);$select = ("SELECT * FROM photo_albums ORDER BY uptime DESC LIMIT 5 ");$result = mysql_query($select) or die(mysql_error());while($row = mysql_fetch_array($result)) {echo "<li>"	."<span class='lpBold'>".$uptime."</span><br/>"		."</li>";

You can kind of see the different methods I have tried to get the proper time, unfortunately none of them have worked.I just want the date to be displayed like: 04-14-10Thanks for the insight,Brian

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...