Back"; exit; } else { $record = mysqli_fetch_assoc($result); } } //continue only if the square is available if ($record['DATE'] == "0000-00-00 00:00:00" || $record['DATE'] == NULL) { //check for required fields for ($i=1;$i<=$sqTotal;$i++) { if (($sqSelect[$i] >= 00 OR $sqSelect[$i] < 100) AND $name != '' AND $email != '') { $sql="UPDATE VNSB_squares SET NAME='".$name."', EMAIL='".$email."', NOTES='".$notes."', DATE='".$date."', CONFIRM='".$confirm."' WHERE SQUARE='".$sqSelect[$i]."' LIMIT 1"; $result = mysqli_query($conn, $sql); if (!$result) { echo mysqli_error(); echo "
Sorry, Technical problem occurred... your selection was not added.

Email this problem to ".$ADMIN_EMAIL.""; exit; } } else { echo "


Required fields are missing!

Back

"; exit; } } //email //$headers = "From: $ADMIN_EMAIL\r\nBcc: $ADMIN_EMAIL\r\n"; $headers = "From: $ADMIN_EMAIL"."\r\n"."Bcc: $ADMIN_EMAIL"; function notify_admin ($mailto, $mailmessage, $mail_headers) { mail("$mailto", "Super Bowl Squares", "$mailmessage", "$mail_headers"); } $selectedSQUARES=""; for ($i=1;$i<=$sqTotal;$i++) { $selectedSQUARES .= $sqSelect[$i]." "; } ?>

GOOD LUCK

Your request has been recieved and an email was sent to your email address given.

The square(s) is(are) temporary reserved in your name "", pending confirmation.

IF YOUR PAYMENT CAN NOT BE VERIFIED WITHIN 24 HOURS, YOU WILL LOOSE THE SQUARE(S).

Good Luck and enjoy the game.

The Commissioner



Home

$square is NOT available! Someone must have just selected that same square.

Please go back and select another square.

"; exit; } ?>