I know that this has been asked a thousand times and I still can't find mey error.
<body><?php
$con = mysql_connect("xxxxxxxxx","xxxxxxxxxxx","xxxxxxxx");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("xxxxxxxxxxx", $con);
$sql="INSERT INTO mytable (row1, row2)
VALUES
('$_POSTrow1]','$_POST[row2]')";
if (!mysql_query($sql,$con))
{
die('Error: ' . mysql_error());
}
header("Location: compsubmit.php}");
mysql_close($con)
?></body>