Can anyone tell me why this code doesnt work, in the switch, either one works or the other, but not both. For example, when number is more than zero, the code doesnt work, when I change the code for the more than zero to work, when $number = 0, the code doesnt work again! ahhh!!!!
$number=mysql_num_rows($query);
switch ($number) {
case $number = 0:
echo ("No comments have been made");
break;
case $number >= 1:
post();
break;
}