I've been trying to get this all day.
I get this error:
Parse error: syntax error, unexpected T_STRING in /home/strato/public_html/test.php on line 43
Below is the code starting with LINE 41
switch ($sort)
{
case "deaths": $query .= " COUNT(fnid) - sum('fnvalue2')) as CAT "; break;
case "avgkill": $query .= ", (sum(fnvalue2) / COUNT(fnid)) as CAT "; break;
}
Any ideas?
Thanks