include('header.php'); include('left_body.php'); $type=$_REQUEST['type']; $query=mysql_query("SELECT * FROM tbl_event_all WHERE type='$type' AND status='1' order by date")or die(mysql_error()); ?>
while($news=mysql_fetch_array($query)) { ?>
echo $news[1]; ?>
if($news[3]!="") { ?> Date- echo $news[3]; } if($news[4]!="") { ?> Time:- if($news[4]<12) echo $news[4]."AM"; elseif($news[4]<13) echo $news[4]."PM"; else { $t_f=$news[4]-12; echo $t_f."PM"; } } ?> if($news[5]!="") { ?> Venue:- echo $news[5]; ?> } if($news[6]!="") { ?> Url:- echo $news[6]; ?> } if($news[11]!="") { ?> } ?>
$page_content=html_entity_decode($news[8]); echo $page_content; ?>