Welcome to Geeklog Thursday, April 22 2021 @ 09:16 pm EDT

Geeklog Forums

Links order


Status: offline

marcelw

Forum User
Newbie
Registered: 04/09/05
Posts: 12
How do I order the links of webresources different as buy there title? I would like to use their ID for that.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 12/01/02
Posts: 13073
Location:Stuttgart, Germany
That should be it:
PHP Formatted Code
$sql .= ' ORDER BY category ASC,title';
 
(line 151 in links/index.php).

bye, Dirk
 Quote

Status: offline

marcelw

Forum User
Newbie
Registered: 04/09/05
Posts: 12
Thanks Dirk -- as allways correct. I've changed it in
PHP Formatted Code
$sql .= ' ORDER BY category ASC,lid DESC';
 

so now I can identify the links as YYYYMMDD and show newest first in a bibliography-like listing.
 Quote

All times are EDT. The time is now 09:16 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content