Hello,
While putting together a sticky form I got this error:
Parse error: parse error in C:\wamp\www\base_ball\insert_player.php on line 175
The problem is that this line of code does not exist. The script ends at line 174. Here are the bits of code I have altered:
<?php
if (isset($_POST['Insert'])){
$ln = $_POST['ln'];
$fn = $_POST['fn'];
$mi = $_POST['mi'];
...
$team = $_POST['team'];
$output_form = false;
if (empty($ln) || empty($fn) || empty($pcell)){
echo 'You forgot either the last name, first name, or player\'s cell. <br \>';
$output_form = true;
}
else
{
$query = "INSERT INTO player...
...
if ($output_form){
?>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>">
<table cellspacing="0" cellpadding="0" width="100%">
...
<input type="Submit" value="Insert" name="Insert">
</form>
<?php
}
?>
<?php require("includes/footer.php"); ?>
<meta http-equiv="Refresh" content="1; url=add_thankyou.php">
Line 174 above ^^^
I'm not sure what to do when the parser picks up code that doesn't exist unless it is expecting something on the next line (175)?