section[0]['sec_id']="2"; section[1]['sec_id']="3"; cat[2][0]['cat_id']="1" cat[2][0]['cat_name']="category1" cat[2][1]['cat_id']="2" cat[2][1]['cat_name']="category2" cat[3][0]['cat_id']="3" cat[3][0]['cat_name']="category3" cat[3][1]['cat_id']="4" cat[3][1]['cat_name']="category4" //i want to make a table that display a section and the category belongs to it [ by the first index = the sec_id ] after it ..