I'm asking about making forums appear under the right categories.
right now I'm thinking:
Now this would work but if there are alot of categories, it takes alot of queries. Do they do it this way or do that do it some other way and select categories and forum at once and merge it together with a join statement?PHP Code:$r="select * from categories";
$r2=mysql_query($r);
while($r3=mysql_fetch_array($r2))
{
//print category here
$s="SELECT * from forums where catparent='$r3[category']";
$s2=mysql_query($s);
while ($s3=mysql_fetch_array($s2))
{
//print forum name here
}
}



gotcha!

Bookmarks