/*$qry = "select * from 15cup_ar_newsevent_2013 order by sno";
$results = mysqli_query($connect,$qry);
$total_records = mysqli_num_rows($results);
$total_groups = ceil($total_records/$items_per_group_events);*/
// Pagging
$rpp = 4; // results per page
$adjacents = 2;
$page = intval($_GET["page"]);
if($page<=0) $page = 1;
//page url
$reload = "events.php?";
// select appropriate results from DB:
$sql = "select * from 15cup_ar_newsevent_2013 order by sno ";
$result = mysqli_query($connect,$sql);
// count total number of appropriate listings:
$tcount = mysqli_num_rows($result);
// count number of pages:
$tpages = ($tcount) ? ceil($tcount/$rpp) : 1; // total pages, last page number
$count = 0;
$i = ($page-1)*$rpp;
?>
..::Bindal Gems::..
include('top.php');?>
if(mysqli_num_rows($result)>0){
while(($count<$rpp) && ($i<$tcount)) {
mysql_data_seek($result,$i);
$rsranking = mysqli_fetch_array($result);?>
| |
|
|
| |
if($rsranking['image']!=""){?> }else{?> }?> |
if($rsranking['eventvenue']!=""){?>
| Event Venue: |
|
}?>
| Start Date: January 01, 1970 |
if($rsranking['event_edate']!=""){?>
| End Date: January 01, 1970 |
}?>
|
if($rsranking['Contact_2011']!=""){?>
Description:
|
}?>
|
|
|
|
$i++;
$count++;
}} else { echo "
News & Events not Found!
";}?>
include('footer.php'); ?>