11
ghia
Re: Help with a php function for my project
  • 2010/2/17 20:51

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


It says to use only one list.
Or you make for every category the product list in PHP and output that everytime to the template.
Or you make a combined sorted list with category and product data in it and output that to the template which then checks changes in the category data to insert a category header.
In general, I think the first method is the more efficient.
{
        
$stat['qty']=$row['total_qty'];
        
$stat['p_name']=$row['p_name'];
    }

12
kaotik
Re: Help with a php function for my project
  • 2010/2/18 0:20

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


send me a pm with the username you registered at dev.xoops so I can add you.

Login

Who's Online

241 user(s) are online (173 user(s) are browsing Support Forums)


Members: 0


Guests: 241


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