1
gruessle
Top 10
  • 2003/10/16 19:44

  • gruessle

  • Friend of XOOPS

  • Posts: 348

  • Since: 2003/9/20


I like to have the top ten from one sub category.
PHPLinks does not seam to have much support so I was wondering if someone here could help me with this easy hack.

Basicly I have a subcategory called 'Dealers'. And I would like to show them on a block sorted by rating.

I have changed the cid=$cid to cid=952

but how do I get rid of the loop?



while(list($cid, $ctitle)=$xoopsDB->fetchRow($result)){

$rankings[$e]['title'] = sprintf(_MD_TOP10, $myts->htmlSpecialChars($ctitle));

$query = "select lid, cid, title, hits, rating, votes from ".$xoopsDB->prefix("addresses_links")." where status>0 and (cid=952";

Thanks

2
gruessle
Re: Top 10
  • 2003/10/16 20:26

  • gruessle

  • Friend of XOOPS

  • Posts: 348

  • Since: 2003/9/20


I got it!

Login

Who's Online

234 user(s) are online (163 user(s) are browsing Support Forums)


Members: 0


Guests: 234


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits