问下怎么调用栏目数据。每个栏目的文章数量未审核文章数量
/**栏目内容数量 调用输出*/ function article_sum($catid,$type = 0){ switch ($type){ case 0: $form = "article"; break; case 1: $form = "download"; break; case 2: $form = "product"; break; case 3: $form = "website"; break; case 4: $form = "company"; break; } $db = D($form); return $db->where(array('catid'=>$catid))->total(); }
这家伙很懒,什么都没写呢~