Help - Search - Members - Calendar
Full Version: Looping through categories and forums like IPB doe
Invision Power Services > Community Forums > Community Web Design and Coding
Danny
Can somebody explain to me how IPB does this:

The categories and forums are in the same table, and it selects them at the same time in one query, but how can it cycle through the forums and categories and tell what is the parent of what? If I need to give more details, please tell me because I am wondering how it does it.
Chad
IPB actually grabs the categories and such all at once.
Stores them in an array, and then parses them with foreach.

Thats the basic idea behind it anyways.

Chad
Michael_C
There is a parent row in the forums table.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.