connect(); $objDB = new clsMysql; $objDB->connect(); $strSQL = "select id from news where open = 1 "; $objDB->query($strSQL); $total= $objDB->num_rows($objDB->result); $total_record = $objDB->num_rows($objDB->result); $total_page = 1; $total_big_page = 1; $curr_page = 1; $curr_bigpage = 1; $total_page = ceil($total_record / 10); $total_big_page = ceil($total_record / 100); $curr_page = $_POST["curr_page"]; $curr_bigpage = $_POST["curr_bigpage"]; $tmp = $_GET["p"]; if ($tmp != "") { $curr_page = $tmp; } /* echo "curr_page = $curr_page"; echo "
"; echo "curr_bigpage = $curr_bigpage"; echo "
"; */ if ($curr_page == "") $curr_page = 1; if ($curr_bigpage == "") $curr_bigpage = 1; if ($curr_page > $curr_bigpage * 10) { $curr_bigpage++; } $limit_start = ($curr_page - 1 ) * 10; $limit_end = 10; $strSQL = "select * from news where open = 1 order by datetime2 desc limit $limit_start, $limit_end"; //echo $strSQL; $objDB->query($strSQL); $total_record = $objDB->num_rows($objDB->result); //echo "total_record = $total_record"; ?> Travla-News & Chronicle
 
     
   
Home > News
 
       
     
$total_page) { $next_page = $total_page; } for ($i=0; $i < $total_record; $i++) { $objDB->fetch_array($objDB->result); if ($i % 2 == 0) { $bgcolor = "bgcolor='F2F2F2' "; } else { $bgcolor = ""; } ?> height="24">
 
" target="_self">record["title"]; ?>
record["datetime2"],0,10) ; ?>
record["hits"]*1.0; ?>
 
   
\n"; echo ( $tmp ); echo "\n"; } echo "\t"; } } ?>
 
 
WARRANTY ABOUT US CHRONICLE CONTACT US WHERE TO BUY