|
$query = $this->db->query("SELECT * FROM ci_forum_block where fb_parent = 0");
foreach ($query->result() as $row)
{
echo $row->title;
$query2 = $this->db->query("SELECT * FROM ci_forum_block where fb_parent = ".$row->fb_id);
}
要如何顯示成
item1
-item2
-item3
-item4
item5
-item6
-item7 |
|