if(!empty($_GET['start'])){ $k= $_GET['start']; } else { $k=0; }
$qur_sel="select * from apt_posts
where ".$sub_qur." and p_status=1 and p_cat_id=2 order by p_order_by desc"; //echo $qur_sel;
$qur_cnt=Query($qur_sel);
$cnt_sel=NumRows($qur_cnt);
$pst_qur=Query($qur_sel." limit $start,$len");
if($cnt_sel>0) {
while($row_blog=Fetch($pst_qur)){ $k++;
$post_id=$row_blog['p_id'];
$pid=call_user_func('rnsb64ende', $post_id);
$pdate=date("d M, Y",strtotime($row_blog['p_date']));
//if(!empty($row_blog['p_upload_img'])) { $pic=BASEURLF.RNSUP."posts_uploads/image/".$row_blog['p_upload_img']; } else { $pic=BASEURLF.RNSUP."noimage.png";}
if(!empty($row_blog['p_upload_pdf'])) { $p_pdf=BASEURLF.RNSUP."posts_uploads/pdf/".$row_blog['p_upload_pdf']; } else{ $p_pdf=""; }
?>
}}else { ?>
}if($cnt_sel>$len){ ?>
Navigation($start,$cnt_sel,$link); ?>
} ?>