Jump to content

syntax error


TheSky

Recommended Posts

hey im stuck on matching id = case or else dont exist

any help will be welcome  :shy:

<?php 
$msg=$_GET['id'];
if ($msg('id') == 'case');
switch($msg){
case 301:
echo "301 Moved Permanently";
break;
case 302:
echo "302 Found";
break;
case 303:
echo "303 See Other";
break;
case 403:
echo "403 Forbidden";
break;
case 404:
echo "404 Not Found";
break;
}
else {
echo "This error dont exist"
}
	?>

Link to comment
https://forums.phpfreaks.com/topic/234517-syntax-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.