i just made a website on a local webserver(xampp)
now i'm uploading it to my webspace @ my hosting and i get the following error:
Error : Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
what am i doing wrong?
this is the code:
<?php
$query = "SELECT COUNT(*) AS num, land FROM wijnen WHERE land = 'Argentinië' AND wijnen.kleur = 'Rood' GROUP BY land";
$result = mysql_query($query) or die('Error : ' . mysql_error());
while(list($num, $land) = mysql_fetch_array($result, MYSQL_NUM))
{
if ($land == ""){}
else{
?>
<li class="sub">
<a href="rood.php?id=Argentinië&sid=0&van=0&tot=10">Argentinië (<?php echo $num;?>)</a>
</li>
<?php
}
}
?>
i hope someone can help me out here :)