db->query("select * from menu where type = 2 and level = 1"); $menu_top_level_1 = $sql->result_array(); ?>