I got this message (syntax error, unexpected T_STRING, expecting ',' or ';') when I was trying to run the following code:
<html>
<head>
</head>
<body>
<title>Num One Website</title>
<?
$con = mysql_connect("","","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("", $con);
$result1 = mysql_query("SELECT * FROM Students") ;
echo "<form action='ConfirmEnter.php' method='post'>";
echo "<input type="Radio" name="mark" value="mt">"."MidTerm<br>";
echo "<input type="Radio" name="mark" value="pr">"."Project<br>";
echo "<input type="Radio" name="mark" value="fi">"."Final<br>";
echo "<table border cellpadding=3>";
echo "<tr>";
echo "<th>ID</th>";
echo "<th>MidTerm</th>";
echo "<th>Project</th>";
echo "<th>Final</th>";
echo "<th>Total</th>". "</tr>";
$count=1;
while($row1 = mysql_fetch_array($result1))
{
echo "<tr>";
echo "<td><input name='ID[]' readonly='readonly' value='". $row1['ID'] ."' size=5/></td> ";
echo "<td><input type='text' name='mt[]' size=5 value='0.0' /></td>";
echo "<td><input type='text' name='pr[]' size=5 value='0.0' /></td>";
echo "<td><input type='text' name='fi[]' size=5 value='0.0' /></td>";
echo "</tr>";
$count++;
}
echo "</table>";
echo "<input type='submit' value='Submit' />";
echo "</form>";
mysql_close($con);
?>
</body>
</html>
The error in these lines:
echo "<input type="Radio" name="mark" value="mt">"."MidTerm<br>";
echo "<input type="Radio" name="mark" value="pr">"."Project<br>";
echo "<input type="Radio" name="mark" value="fi">"."Final<br>";
I looked for this problem in your website and other websites but I couldn't find the solution for it.