Please help me for correcting this code,i want put if inside switch:
switch ($urlcomecatid) {
if ($urlcomeparentid == 1 || $urlcomeparentid == 2 || $urlcomeparentid == 3)
break;
case "50":
case "51":
case "52":
case "109":
case "110":
//do nothing and exit from switch
break;
default:
header ("Location:http://www.example.com/tech/tech.php"); exit();
break;
}
The correct code should be something like