News:

CPG Release 1.6.31
Minor maintenance release
Clean up remaining remnants of the .net CPG website
Improved installer_stub compatibility with various server configurations

Main Menu

changing the order of pics when editing them

Started by suprsonika, March 31, 2005, 05:32:47 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

suprsonika

I'm trying to order the photos by date when editing them. I found this in the FAQs:

By default, the pics are shown alphabetically when you edit them. To change the sorting order to "by date", edit editpics.php and change
$result = db_query("SELECT * FROM {$CONFIG['TABLE_PICTURES']} WHERE aid = '$album_id' ORDER BY filename LIMIT $start, $count");
to
$result = db_query("SELECT * FROM {$CONFIG['TABLE_PICTURES']} WHERE aid = '$album_id' ORDER BY pid LIMIT $start, $count");


That works, but it puts the older ones first, and I want the newest ones to be listed first. Anyone know how to change it?

Sarah


Nibbler


suprsonika