Hey,
I have been trying to do switchs, now I want tow have 1, 2, 3, etc for one switch right. Now I only want one certain place to be affected for each case when it is called, and not every place that calls a case from that switch. here is what I have been doing which does work but is not what I really want to be doing for obvious reasons:
<?php
switch ($_GET['archive']) {
case "news":
switch ($_GET['corp']) {
case "1": print "<div class='newsrow' align='center'><div class='insiderow'>
Fusce pretium viverra felis. Suspendisse potenti. Donec vel dui. Duis tristique tincidunt lectus.
</div></div>";
break;
}
break;
}
?>
Now I just put that with a different case number in many different places and when its called it goes where that part is right. Is there any way I can give it an if statement like if $case = 1 print all that, then when I cant it all I do is call $case in the place I want it to be printed.. I have done something like that but when I do it it affects all the places it can affect.
Any help would be appreciated, thanks!