changing the order of pics when editing them changing the order of pics when editing them
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

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