hi...
in my index page
...site/modules/myalbum0/index.php
i have all my thumb with parties...
now: how i can order by date or by id the thumbs (gallery)?
thanks a lot...
In index.php, date DESC is the default and hard-coded order.
If you want to modify it, edit line 48 of index.php
i have try to modify it but the result is the same...
where i mistake ?
thanks
eg) by id DESC
$prs = $xoopsDB->query( "SELECT l.lid, l.cid, l.title, l.ext, l.res_x, l.res_y, l.status, l.date, l.hits, l.rating, l.votes, l.comments, l.submitter, t.description,c.title AS cat_title FROM $table_photos l LEFT JOIN $table_text t ON l.lid=t.lid LEFT JOIN $table_cat c ON l.cid=c.cid WHERE l.status>0 ORDER BY l.lid DESC" , $num , $pos ) ;
It is natural if each result looks identical.
id DESC and date DESC will return almost the same result.
nothing
i have try also with l.lid DESC but nothing... i don't know why...
Check again.
It is natural if each result looks identical.
id DESC and date DESC will return almost the same result.
Try id ASC once.
Or check the file you edit is correct one.