War script fejl?
HEy... jeg har lavet en lille fejl men kan sku ikke finde den .. :/Den skriver : Parse error: parse error, unexpected '<' in /web/www/frac/users/volumen/wars.php on line 180
det er et CW script. det er i mysql og her er koden:
<? include("inc/mysql.php"); // include the file that connects to the DB!
echo "<font id=\"font2\"><b>Alle kampe:</b></font><p>";
$result = mysql_query("SELECT * FROM Cws_matches ORDER BY id DESC") or die(mysql_error()); // Make a query thats gets everything out of Cws_matches
$antal = mysql_num_rows($result);
if($antal == 0){
print "Ingen kampe!";
} else {
// Start of top table
print "
<table border=\"0\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#C0C0C0\" bordercolorlight=\"#C0C0C0\" bordercolordark=\"#808080\">
<tr>
<td width=\"18%\"> <font size=\"1\" id=\"font2\"><b>Date:</b></font></td>
<td width=\"16%\"> <font size=\"1\" id=\"font2\"><b>Teams:</b></font></td>
<td width=\"8%\"> <font size=\"1\" id=\"font2\"><b>Spil:</b></font></td>
<td width=\"14%\"> <font size=\"1\" id=\"font2\"><b>SlutScoren:</b></font></td>
<td width=\"19%\"> <font size=\"1\" id=\"font2\"><b>Skribent:</b></font></td>
</tr>
"; // End of TopCell
while ($row = mysql_fetch_array($result)) { // Make a while that throws everything out
$strArr = split(":",$row[score]); // Tager scoren og deler op i 2
// the print that shows the matches
print "
<tr>
<td width=\"18%\"> <font size=\"1\" id=\"font1\">$row[date] </font></td>
<td width=\"16%\"> <font size=\"1\" id=\"font1\">$row[homeTeam]- $row[outTeam]</font></td>
<td width=\"8%\"> <font size=\"1\" id=\"font1\">$row[game]</font></td>
<td width=\"14%\"> <font size=\"1\" color=\"blue\">".$strArr[0]."</font>:<font size=\"\" color=\"red\">".$strArr[1]."</font></td>
<td width=\"19%\"> <font size=\"1\" id=\"font1\">$row[writer]</font></td>
</tr>
"; // End of print
} // end of while
echo "</table>"; // end of top table
}
