$time = $_REQUEST['playDateTime']; $date = $_REQUEST['playDate']; $field = $_REQUEST['field']; if($field == 'OAK SPLAT') { $fieldShow = 'Oakleigh World Series Splatball'; } if($field == 'OAKLEIGH') { $fieldShow = 'Oakleigh World Series Paintball'; } if($field == 'LR SPLAT') { $fieldShow = 'Little River World Series Splatball'; } if($field == 'LITTLE RIVER') { $fieldShow = 'Little River World Series Paintball'; } $date = preg_replace('/[^0-9,-]/', "", $date); $field = preg_replace('/[^A-Z,\s]/', "", $field); $playDateTime = preg_replace('/[^0-9,:]/', "",$time); $sessionTime = $date." ".$playDateTime; //// difference /// $playDateTime = date('Y-m-d H:i:s',strtotime($sessionTime)); $dayOfPlay = date('N',strtotime($playDateTime)); $dayOfBook = date('N'); $yPlay = date('Y',strtotime($sessionTime)); $mPlay = date('m',strtotime($sessionTime)); $dPlay = date('d',strtotime($sessionTime)); $HPlay = date('H',strtotime($sessionTime)); $minPlay = date('i',strtotime($sessionTime)); $cdate = mktime($HPlay, $minPlay, 0, $mPlay, $dPlay, $yPlay, -1); $today = time(); $difference = $cdate - $today; $dayTilPlay = ceil($difference/60/60/24); $hoursTilPlay = ceil($difference/60/60); $minsTilPlay = ceil($difference/60); $diffMessage = "Time until booking is $difference sec OR $dayTilPlay days OR $hoursTilPlay hours OR $minsTilPlay mins"; $actionTime = "Proceed"; if($minsTilPlay < 0) { $actionTime = "Past"; } if($minsTilPlay >= 0 && $hoursTilPlay < 24) { $actionTime = "Soon"; } //// end difference //// $link=mysql_connect ("localhost", "min9903_wsp", "5VanKr_72!SnP09") or die ('I cannot connect to the database because: ' . mysql_error()); mysql_select_db ("min9903_wspBookings"); $ip=$_SERVER['REMOTE_ADDR']; $pageSecurity = "paint-session-run"; include_once('ipSecurity.php'); $playTimeShow = date('g:ia', strtotime($playDateTime)); $playTime = date('H:i:s', strtotime($playDateTime)); $dateShow = date('l jS F',strtotime($date)); #if($playTime == '14:15:00') {$playTimeA = "2:15pm"; } #else { $playTimeA = $playTime; } $playTimeA = $playTime; $showTime = $playTimeA." at ".$field; #echo $date; $dateTime = date('Y-m-d H:i:s'); $queryStatus = "INSERT INTO `quoteMonitor` (`ID`,`dateTime`, `status`, `players`, `field`, `date`, `heard`,`firstName`,`lastName`,`phone`,`email`,`bookingCode`,`ip`) VALUES ('$statusID', '$dateTime', '3', '$players', '$field', '$date', '$heard','$first','$last','$phone','$email','$bookingCode','$ip');"; $sqlStatus = mysql_query($queryStatus) or die('Query Status failed: ' . mysql_error()); $action = "paintball-quoteProcessOak.php"; ?>
We just need some details to put with this session at on at ...
The session you were booking for is on
To go back to the list of holiday sessions please click here
} if($actionTime == "Past") { ?>The session you were booking for is on
To go back to the list of holiday sessions please click here
} ?>