Quote:
Parse error: syntax error, unexpected T_DEFAULT
error occurs around the "case defualt" line. Can't see anything wrong.Code:// Script flow
switch($mod) {
case 'doadd':
die('executed doadd code');
break;
case default:
addgroup();
break;
}
Printable View
Quote:
Parse error: syntax error, unexpected T_DEFAULT
error occurs around the "case defualt" line. Can't see anything wrong.Code:// Script flow
switch($mod) {
case 'doadd':
die('executed doadd code');
break;
case default:
addgroup();
break;
}
Just 'default', not 'case default'.
Bangs head on desk.Quote:
Originally Posted by penagate
Thanks dude will try this out later in the morning when I get the chance. Sunny Adelaide huh :wave: Hosing down over here in Sydney at the moment.
That fixed that one up. Not the world's leading expert on php so expect a torrent of questions as have an old software package that I'm rewriting to utilise modern web design and stuff.