validasi($_GET['idc'],'xss'); $tabledcat = new PoTable('category'); $currentDcat = $tabledcat->findByAnd(seotitle, $title, active, 'Y'); $currentDcat = $currentDcat->current(); $iddcat = $currentDcat->id_category; ?>
cariPosisi($batas); $tabledcpost = new PoTable('post'); $dcposts = $tabledcpost->findAllLimitByAnd(id_post, id_category, active, "$iddcat", "Y", "DESC", "$posisi,$batas"); foreach($dcposts as $dcpost){ $tabledccom = new PoTable('comment'); $totaldccom = $tabledccom->numRowByAnd(id_post, $dcpost->id_post, active, 'Y'); $tableuser = new PoTable('users'); $currentUser = $tableuser->findBy(id_user, $dcpost->editor); $currentUser = $currentUser->current(); ?>
    validasi($_GET['page'],'sql'); $jmldata = $tabledcpost->numRowByAnd(id_category, "$iddcat", active, "Y"); $jmlhalaman = $p->jumlahHalaman($jmldata, $batas); $linkHalaman = $p->navHalaman($getpage, $jmlhalaman, $website_url, "category", $currentDcat->seotitle, "1"); echo "$linkHalaman"; ?>