hvad går galt ??
Hejsa !!Jeg har dette script....
<?
include(\"header.php\");
$result = sql(\"select headline from $db2 where id = \'\".addslashes($id).\"\'\");
$row = mysql_fetch_array($result);
?>
<table border=\"0\" cellpadding=\"0\" width=\"100%\" cellspacing=\"1\">
<tr>
<td width=\"100%\"><font face=\"Verdana\" color=\"#FFFFFF\" size=\"1\">
<? echo \"$s10\"; ?>
</font>
<tr>
<td width=\"100%\" <? echo \"$tdbag\"; ?>>
<p align=\"center\"><b><font size=\"1\" face=\"Verdana\"><? echo $row[headline]; ?></font></b></td>
</tr>
<tr>
<td width=\"100%\">
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">
<tr>
<td width=\"47%\"><font face=\"Verdana\" size=\"1\"><strong><? echo \"$s2\"; ?></strong></font></td>
<td width=\"8%\"><font face=\"Verdana\" size=\"1\"><strong><? echo \"$s3\"; ?></strong></font></td>
<td width=\"10%\"><font face=\"Verdana\" size=\"1\"><strong><? echo \"$s4\"; ?></strong></font></td>
<td width=\"13%\"><font face=\"Verdana\" size=\"1\"><strong><? echo \"$s5\"; ?></strong></font></td>
</tr>
<?
if ($lang == \"dansk\") {
$result2 = sql(\"select headline,price,ordertime,id from $db4 where cat = \'\".addslashes($id).\"\' order by headline\");
while($row2 = mysql_fetch_array($result2)) {
$headline = $row2[headline];
$price = $row2[price];
}
else {
$result2 = sql(\"select headlineuk,priceuk,ordertime,id from $db4 where cat = \'\".addslashes($id).\"\' order by headline\");
while($row2 = mysql_fetch_array($result2)) {
$headline = $row2[headlineuk];
$price = $row2[priceuk];
}
?>
<tr>
<td width=\"47%\"><font face=\"Verdana\" size=\"1\"><? echo $headline; ?></font></td>
<td width=\"8%\"><font face=\"Verdana\" size=\"1\"><? echo $price; ?>,- <? echo \"$s14\"; ?></font></td>
<td width=\"10%\"><font face=\"Verdana\" size=\"1\"><? echo $row2[ordertime]; ?></font></td>
<td width=\"13%\"><font face=\"Verdana\" size=\"1\"><a href=\"basket.php?action=add&ware=<? echo $row2[id]; ?>&location=<? echo $id; ?>\"><? echo \"$s20\"; ?></a></font></td>
</tr>
<?
}
?>
</table>
<?
include(\"footer.php\");
?>
men får følgende fejl
Parse error: parse error in /usr/local/www/xxxx/shop/kategori.php on line 31
og linie 31 er altså denn elinie
else {
hvad er der galt i denne ??
