I get this error:
Parse error: parse error, expecting T_STRING' orT_VARIABLE' or `T_NUM_STRING' in /usr/www/dod/s5nation/new/functions/wishadd.php on line 90
from this code:
if ($view) {
$cat='gameplay';
$result = @mysql_query("SELECT ID, numvote, totvote, Name, Date, Wishes, FROM $wltable WHERE Category='gameplay');
if (!$result) {
echo('<p>Error performing query:') . mysql_error() . '</p>');
exit();
}
while ( $row = mysql_fetch_array($result) ) {
$id = $row["ID"];
$numvote = $row["numvote"];
$totvote = $row["totvote"];
$wname = $row["Name"];
$date = $row["Date"];
$wishes = $row["Wishes"];
if ($numvote=="0") {
$average="-";
} else {
$average=$totvote/$numvote;
$average=round ($average, 1);}
echo "";
$average="";
} }
Line 90 is this line:
$id = $row["ID"];
Ive checked it with my other scripts that use this and its the same... whats wrong with it?