Hi - I'm a newbie and probably a complete moron - my php skills are absolutely embryonic. However, I'm trying to build a query results page and wish to include a variety of page headers, preferably image based, that correspond to the appropriate category. I've been informed that I need to use a switch statement, something like this...
<?php
switch ($_GET['category']){
case "1":
$header= "This is category 1";
break;
case "2":
$header= "This is category 2.. add any sort of code here.";
break;
case "3":
$header= "more info here";
break;
default:
$header= "";
break;
}
// Title echo
echo $header;
?>
Unfortunately, the position of being a complete moron hinders me in that I have no idea of where or how to use the switch statement. If anybody wants to help me, I'd be really grateful....
Other than that, hi everybody....
angstman (aka the moron)