Links Directory project. Question about loops. - 02/04/2003 12:45 AM
Ok, if you saw my post in chit chat regarding a links project, I've begun one. Here's where I am so far. http://www.fish-tails.net/dev_test/ubbthreads/links.php?op=Links
I'll come back with a list of features I'm working on, but it's built from scratch at this point, and is designed with UBBThreads in mind. I started the project yesterday.
I need some assistance on loops. If you follow the link you will get to the main list of categories. When building my table cells, I want 3 columns, as opposed to the 9 that are there.
Here's how my output goes:
Retrieve main (or parent) categories
Begin my loop with a while statement.
Retrieve sub categories
Start second loop sequence for listing subs below tha mains.
Close second loop
Close first loop.
Now when I output, I want each main category with its sub categories in one table cell, But I want to be able to customize the table so that the number of columns can be changed by the admin, i.e. customize the display. I'm puzzled on how to start a row with three columns, then continue down with the rest of the cells in sequence.
Did I confuse you? I confused myself. Any suggestions on how to go about this?
Thanks.
I'll come back with a list of features I'm working on, but it's built from scratch at this point, and is designed with UBBThreads in mind. I started the project yesterday.
I need some assistance on loops. If you follow the link you will get to the main list of categories. When building my table cells, I want 3 columns, as opposed to the 9 that are there.
Here's how my output goes:
Retrieve main (or parent) categories
Begin my loop with a while statement.
Retrieve sub categories
Start second loop sequence for listing subs below tha mains.
Close second loop
Close first loop.
Now when I output, I want each main category with its sub categories in one table cell, But I want to be able to customize the table so that the number of columns can be changed by the admin, i.e. customize the display. I'm puzzled on how to start a row with three columns, then continue down with the rest of the cells in sequence.
Did I confuse you? I confused myself. Any suggestions on how to go about this?
Thanks.