Re: number of items in a category, recursive

From: Date: Tue, 29 Apr 2003 18:17:24 +0000
Subject: Re: number of items in a category, recursive
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-145682@lists.php.net to get a copy of this message
On Wednesday 30 April 2003 02:20, Jake Malone wrote: > hi, i have a table setup like this: > > - categoryID > - parentID (if the category is a sub-category) > - name > > and then, a products table: > > - productID > - categoryID > - name > - etc. > > what I need to do is check how many products are in a given category, and > all sub-categories within it. I wrote the following function, but for > whatever reason, the page just doesn't load when I try to call it. So what does the page do? Any errors? If you view HTML source do you see anything? Did you check the php error log for any useful info? Did you set error reporting to full? Did you print_r()/var_dump() all your variables? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* Support your local Search and Rescue unit -- get lost. */

« previous php.general (#145682) next »