getResult(); if(isset($_GET['offset'])) { $nomor = ($limit * $_GET['offset'])+1; } else { $nomor = 1; } if(mysql_num_rows($result) > 0) { while($row = mysql_fetch_array($result)) { if(strlen($row['news_desc']) < 250) { $desc = $row['news_desc']; } else { $currents = basename($_SERVER['REQUEST_URI']); $desc = substr($row['news_desc'],0,250); $desc .= '... read more'; } echo ' '; } echo '
'; $query->printNav(); echo '
'; } else { echo "Tidak ada berita pada kategori ini."; } ?>