August 27th, 2013, 01:56 AM
How do I efficiently display all topics?
In my website I want to display all the news category-wise in a table.
Admin can add categories and registered users can add news in any category.
Solution I have now is this: -
I loop through all the categories and then for each category I loop through all the news and display only that which belong to the category. I am using two loops here. Any ideas to do it better?
Basically I must display category heading in the top and news that belong to it below.
How do I do this more efficiently?
P.S. Sorry if this is the wrong sub-forum to post this thread.
August 27th, 2013, 03:19 PM
Yes, the web design help forum is mostly for non-programming questions.
Which server-side language and database system are you using?