include_once("db.php");
?>
Online News
include_once("inc/inc_header.php")
?>
$qr = mysql_query("select * from news where id='".$_GET['news_id']."'");
// $qr = mysql_num_rows($resultss);
$rrs = mysql_fetch_array($qr);
$news= $rrs['category_id'];
$tr = mysql_query("select * from category where id='$news' ");
// $qr = mysql_num_rows($resultss);
$rt = mysql_fetch_array($tr);
?>
$dt= $rrs['dateAdded'];
echo "Published Date:".date("d F Y h:i:s A", strtotime("$dt")) . "\n";
?>
------------------ Advertisement ------------------
$qt = mysql_query("select * from news where category_id='$news' order by id desc Limit 0,25 ");
// $qr = mysql_num_rows($resultss);
while($qw = mysql_fetch_array($qt)) {
?>
} ?>
include_once("inc/inc_footer.php");
?>