0) { $perpage = 8; if($_GET['p'] > 0) { $start = (($_GET['p']-1) * $perpage); $cpage = $_GET['p']; $i = $start; } else { $start = 0; $cpage = 1; $i = 0; } $url = "upcomingevents?p="; $rows = mysql_num_rows($upcoming_qry); $upcoming_sql1 = $upcoming_sql. " LIMIT $start, $perpage"; $upcoming_qry1 = mysql_query($upcoming_sql1); while($upcoming_res = mysql_fetch_assoc($upcoming_qry1)) { ?>
  • 1) { echo navigation($rows, $perpage, $url, $cpage); } } else { ?>
  • There are no upcoming events