I would like the files to be shown newest-oldest when I am editing them, and I found this (http://forum.coppermine-gallery.net/index.php?topic=16440.0) thread which tells how to do it, but it is older and the code isn't in my version of editpics.php - can someone tell me what to change to show the newest files on top?
Thanks :)
Also, the FAQ must be outdated because when I search for that line it tells me to change, it doesn't exist...
http://coppermine-gallery.net/demo/cpg14x/docs/faq.htm#changeOrderEdit
Anyone? Your help would be greatly appreciated :)
The code is now
$sql = "SELECT p.*,a.category FROM {$CONFIG['TABLE_PICTURES']} as p ".
"INNER JOIN {$CONFIG['TABLE_ALBUMS']} as a ".
"ON a.aid=p.aid ".
"WHERE p.aid = '$album_id' ".
"ORDER BY p.filename LIMIT $start, $count";
$result = cpg_db_query($sql);
and should be changed to
$sql = "SELECT p.*,a.category FROM {$CONFIG['TABLE_PICTURES']} as p ".
"INNER JOIN {$CONFIG['TABLE_ALBUMS']} as a ".
"ON a.aid=p.aid ".
"WHERE p.aid = '$album_id' ".
"ORDER BY pid LIMIT $start, $count";
$result = cpg_db_query($sql);
to apply the mod.
Thanks so much for the help =P