Hallo wahsaga,
$abfrage = "SELECT *, COUNT(*) as anzahl FROM irgendwas WHERE x = '$var1'";
#1140 - Mixing of GROUP columns (MIN(),MAX(),COUNT()...) with no GROUP columns is illegal if there is no GROUP BY clause
oh, ja, danke, da war noch ein *, zu viel drin ;-(
$abfrage = "SELECT COUNT(*) as anzahl FROM irgendwas WHERE x = '$var1'";
muß es richtig lauten.
Grüsse
Frankie