table('article_cat'). " WHERE parent_id='$cat_id' "; $cat_List=$db->getAll($sql); for($i=0;$itable('article_cat'). " WHERE parent_id ='$cat_id1' "; $cat_List2=$db->getAll($sql); for($j=0;$j getAll("SELECT article_id,title FROM ".$ecs->table('article')." WHERE cat_id in($cat_id_list) AND is_open=1 order by article_id asc LIMIT $page,10;"); print_r(json_encode($res)); ?>