01-19-2008, 02:11 PM
|
#5 (permalink)
|
|
The Frequenter
Join Date: Dec 2007
Location: Bucharest, Romania
Posts: 438
Thanks: 3
|
I meant shouldn't.
Now, for the problem. I don't really understand what you're trying to pull there, but here's an idea of what it should look like:
PHP Code:
// go through and display the categories while( $category = mysql_fetch... ) { echo $category['name'];
// if this category is selected, print its subs if( isset( $_GET['category'] ) && $_GET['category'] == $category['id'] ) { while( $subcategory = mysql_fetch... ) { echo $subcategory['name']; } } }
__________________
I have optimistic thoughts, even though sometimes (if not always) life's a bitch.
|
|
|
|