I try to select records from a table and encounter following error, please help to correct me what's wrong.
"
Parse error: parse error, unexpected '>' in /home/public_html/Obj.php on line 18"
Line 18 " print "<td>$field</td>";"
<?PHP
print '<font size="5" color="blue">';
print "Objective</font><br>";
$query = "SELECT * FROM Object WHERE username = " ."'$username';
$result = mysql_query($query);
if ($result)
{
print '<table border=1>';
print '<th>ObjectID<th>ObjectDesc<th>ObjectStatus';
while ($row = mysql_fetch_row($result)) {
print '<tr>';
foreach ($row as $field) {
print "<td>$field</td>";
}
print '</tr>';
}
} else { die ("Query=$query failed!");}
?>