Onbekend |
|
hallo,
ik heb een error in men sql en zie de fout niet.
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'GROUP BY stem ORDER BY aantal_stemmen DESC LIMIT 1' at line 1
in
$q = mysql_query("SELECT COUNT(stem) AS aantal_stemmen, stem FROM verkiezing WHERE stad=".$data[stad]." GROUP BY stem ORDER BY aantal_stemmen DESC LIMIT 1") or die(mysql_error());
$q = mysql_query("SELECT COUNT(stem) AS aantal_stemmen, stem FROM verkiezing WHERE stad=".$data[stad ]." GROUP BY stem ORDER BY aantal_stemmen DESC LIMIT 1") or die(mysql_error());
en iik zie de fout maar niet.
|