当前位置 > 单页内容管理
fetch_rows("select m.id from ".DB_PRE."category as m where {$filt}"); $total_page=ceil($total_num/$pagesize); $sql="select m.id,m.cate_name from ".DB_PRE."category as m where {$filt} order by m.id desc limit {$pagenum},{$pagesize}"; $rel=$GLOBALS['mysql']->fetch_asc($sql); if(!empty($rel)){ foreach($rel as $key=>$value){ $sql="select count(id) as num,id from ".DB_PRE."maintb where category={$value['id']} and channel=1 GROUP BY id order by id desc"; $is_content=$mysql->fetch_asc($sql); ?>
选择栏目操作
修改|删除 添加
Powered by 63WL