Getting last date uploaded on page outside Coppermine Getting last date uploaded on page outside Coppermine
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Getting last date uploaded on page outside Coppermine

Started by johnner, January 04, 2006, 07:12:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

johnner

Is there anyway to just get the date that the last image was uploaded?  I would like to include a link on my main page that says Images last uploaded x/xx/xxxx, and then a link to the latest uploads.  Any info would be greatly appreciated.

Nibbler

Run a mysql query to get the ctime of the pic with the highest pid.

SELECT ctime FROM prefix_pictures ORDER BY pid DESC LIMIT 1

That will give you the unix timestamp for the latest addition which you can format as you like using date().