Hello friends, I have a question. I'll explain the situation clearly... There are two tables named categories --- id --- category_title topics --- id --- topic_title --- in the database. I need to do something so that the result should be as follows: Main heading 1 subheading 1 subheading 2 Main heading 2 subheading 3 -------------------------------------------------------- in other words, it should not be like this... main heading 1 subheading 1 main heading 1 subheading 2 main heading 2 subheading 3 in short, I need to group subheadings under a single main heading...