Jump to content

PHP Question


iShaun

Recommended Posts

Im making some forums software, and what i have is a table called "forums". There is a field called "parent_id" and if it is 0, its a category, if not, its a forum. If I am viewing a forum, how would I loop through parent_id's until I get to one set to 0 (a category). I am doing this for the Your Location: Forum Title > Forum Name > Topic Name thing. Help please?

Link to comment
https://forums.phpfreaks.com/topic/124880-php-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.