Posts: 1,832
Location: Somewhere else entirely
|
The way I see it, you have a categories table, and a link_info table, and you want to echo out all the links, keeping them in their categories. I would select all the links at once, joined with their category information, and sort by category. Then I would loop over the resulting list, echo each link in turn, and check to see when we change to a new category in the list, at which point echo the right stuff to display the category etc.
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';
Scribble Pad MOD for phpBB (aka MSN handwriting for forums)
|