include('newinc_biam.php'); $page_title = 'Upcoming Shows'; $sreader = 1; $now = gmdate('U'); if(isset($_GET['date'])){ $gig_date = $_GET['date']; $date = $gig_date; $date = strtotime($date,substr($date,-2).'/'.substr($date,4,-2).'/'.substr($date,0,4))+(60*60*19)+(60*30); $date_sql = "SELECT * FROM `gigs_tbl` WHERE `date`=$date AND `date`>$now"; $date_qry = $con->query($date_sql); // echo $date_qry->num_rows; if($date_qry->num_rows==0){ $blank = 1; } else { $blank = 0; $event_page = 1; $date_rst = $date_qry->fetch_assoc(); $price = $date_rst['admission']; $venue_id = $date_rst['venue_id']; //echo $venue_id; $venue_sql = "SELECT * FROM `venues_tbl` WHERE `ID`=$venue_id"; $venue_qry = $con->query($venue_sql); $venue_rst = $venue_qry->fetch_assoc(); $venue_name = $venue_rst['name']; $venue_street = $venue_rst['street']; $venue_town = $venue_rst['town']; $venue_county = $venue_rst['county']; $venue_postcode = $venue_rst['postcode']; $item_code = $gig_date.'FFCTWP'; } } else { $blank = 1; } if($blank==1){ } ?> include('_header.php'); /*?> include('topping.php'); ?> include('page-header.php'); ?> // include('main-nav-area.php'); ?> include('social-bar.html'); */?> if($event_page==1){ include('event_page_body.php'); } else { ?>
'.gmdate('l jS F',$up_gig_rst['date']).' - '.gmdate('g:ia',$up_gig_rst['date']).'
£'.$up_gig_rst['admission'].'
Plus Special Guest '.$guest_name.'
'; } $support_sql = "SELECT * FROM `bills_tbl` WHERE `gig_id`=$gig_id AND `position`=3"; $support_qry = $con->query($support_sql); $support = Array(); while($support_rst = $support_qry->fetch_assoc()){ $support_id = $support_rst['act_id']; $support_act_sql = "SELECT * FROM `acts_tbl` WHERE `ID`=$support_id"; $support_act_qry = $con->query($support_act_sql); $support_act_rst = $support_act_qry->fetch_assoc(); $support_fname = $support_act_rst['first_name']; $support_sname = $support_act_rst['surname']; $support_identifier = $support_act_rst['unique_identifier']; array_push($support, Array("$support_fname $support_sname","$support_identifier")); } sort($support); $supC = count($support); if($supC>0){ echo 'Support: '; $si = 0; while($si<$supC){ echo $support[$si][0].', '; $si++; } $mc_sql = "SELECT * FROM `bills_tbl` WHERE `gig_id`=$gig_id AND `position`=0"; $mc_qry = $con->query($mc_sql); $mc_rst = $mc_qry->fetch_assoc(); $mc_ID = $mc_rst['act_id']; $mc_qry = $con->query("SELECT * FROM `acts_tbl` WHERE `ID`=$mc_ID"); $mc_rst = $mc_qry->fetch_assoc(); $mc_name = $mc_rst['first_name'].' '.$mc_rst['surname']; echo 'and MC '.$mc_name.'
'; } elseif($venue_name=='The Winning Post'){ echo 'New and Established Acts
'; } else { echo 'plus support
'; } if($date<($now+60*60*24*90)){ if($venue_name=='The Winning Post'){ if($up_gig_rst['admission']<6){ $act_ref = 'the-winning-post.php?date='.gmdate('Ymd',$up_gig_rst['date']); } } echo "Get your tickets now"; } else { echo "
Tickets are not on sale for this event. Keep an eye on the site, or join the mailing list to be kept up to date.
"; } echo "Join our mailing list, and get information about our upcoming shows straight to your inbox.
No more than two emails a month.
$clem = 'form.php'; include($clem); ?>