<?
include("dbsession.php");
?>
<html>
<head>
<title>Map</title>
<LINK HREF="style1.css" REL="stylesheet" TYPE="text/css">
</head>
<body>
<center>
<table border="0" width="100%" cellspacing="0" cellpadding="0" class="table1" bgcolor="#000000">
<?
for ($ya = 0; $ya <= 20; $ya++)
{
echo"<tr height=20>";
for ($xa = 0; $xa <= 20; $xa++)
{
$query="SELECT * FROM `phpg_map` WHERE `type`=1 AND `x`='$xa' AND `y`='$ya'";
$z=mysql_fetch_array($query);
$imgname=$z['imagename'];
PRINT<<<E
<td class="td2" width=20 bgcolor=000000>
<img src="$imgname" width=20 height=20>
</td>
E;
}
echo"</tr>";
}
mysql_close();
?>
</body>
</html>
That is my code, and I get a parse error on the last line of php, the "?>". It is really annoying me, what is wrong with it?