I have a really odd question here. Did something change in the switch function in PHP5 from 4 ( i havent done code since then ) or am i just screwing it up. From what i can tell from my PHP referance book im doing it right. The switch looks like the right now and i will need to expand later on it but it has to work first
switch ($func) {
case "images":
images();
break;
case "admin":
admin();
break;
default:
index();
break;
}
?>
Any ideas? Another note … it works fine using numbers instead of words in the switch ex:
switch ($i) {
case 1:
echo '1';
break;
default:
echo 'nothing';
break;
}
EDIT: even if i use the above to echo instead of calling function it still doesnt do anything but the default. Almost like it isnt recognising that anything but default is there.