i keep getting an error message when i submit a form on my site here is the error message:
Parse error: parse error, unexpected T_VARIABLE in /usr/local/www/data/_www/gea/pirep.php3 on line 17
and here is the source code for the php file:
<?
$DBhost = "localhost";
$DBuser = "gea";
$DBpass = "******";
$DBName = "gea";
$table = 'information';
mysql_connect($DBhost,$DBuser,$DBpass) or die("Unable to connect to database");
@mysql_select_db("$DBName") or die("Unable to select
database $DBName");
$id = $POST['id'];
$name = $POST['name'];
$hours = $_POST['hours'];
$sqlquery = "SELECT $id FROM $table"
$sqlquery = "INSERT INTO $table
VALUES('$hours')";
$results = mysql_query($sqlquery);
mysql_close();
print "<HTML><TITLE> PHP and MySQL </TITLE><BODY
BGCOLOR=\"#FFFFFF\"><center><table border=\"0\"
width=\"500\"><tr><td>";
print "<p><font face=\"verdana\" size=\"+0\"> <center>You
Just Entered This Information Into the
Database<p><blockquote>";
print "Pilot ID : $id<p>Name : $name<p>Total Flight Time :
$hours</blockquote></td></tr></table>
</center></BODY></HTML>";
?>
all i want the form to do is select a row in the table using the id submitted and writing in the hours that was submitted