PHP gevorderde |
|
Is het volgende toegestaan want ik krijg error en ben niet zeker van enige fout ...
<?
switch ($_GET["cat"]) {
case 1:
switch (tel_software(7,$_SESSION["ID"])) {
case 1:
print '<img src="template/img/programmas/cat_firewall_1.png" width="688" height="37" />';
break;
case 2:
print '<img src="template/img/programmas/cat_firewall_2.png" width="688" height="37" />';
break;
case 3:
print '<img src="template/img/programmas/cat_firewall_3.png" width="688" height="37" />';
break;
case 4:
print '<img src="template/img/programmas/cat_firewall_4.png" width="688" height="37" />';
break;
break;
case 2:
switch (tel_software(8,$_SESSION["ID"])) {
case 1:
print '<img src="template/img/programmas/cat_criticalattack_1.png" width="688" height="37" />';
break;
case 2:
print '<img src="template/img/programmas/cat_criticalattack_2.png" width="688" height="37" />';
break;
case 3:
print '<img src="template/img/programmas/cat_criticalattack_3.png" width="688" height="37" />';
break;
case 4:
print '<img src="template/img/programmas/cat_criticalattack_4.png" width="688" height="37" />';
break;
break;
default:
switch (tel_software(7,$_SESSION["ID"])) {
case 1:
print '<img src="template/img/programmas/cat_firewall_1.png" width="688" height="37" />';
break;
case 2:
print '<img src="template/img/programmas/cat_firewall_2.png" width="688" height="37" />';
break;
case 3:
print '<img src="template/img/programmas/cat_firewall_3.png" width="688" height="37" />';
break;
case 4:
print '<img src="template/img/programmas/cat_firewall_4.png" width="688" height="37" />';
break;
default:
print '<img src="template/img/programmas/cat_firewall_1.png" width="688" height="37" />';
}
?>
<? switch ($_GET["cat"]) { case 1: switch (tel_software(7,$_SESSION["ID"])) { case 1: print '<img src="template/img/programmas/cat_firewall_1.png" width="688" height="37" />'; break; case 2: print '<img src="template/img/programmas/cat_firewall_2.png" width="688" height="37" />'; break; case 3: print '<img src="template/img/programmas/cat_firewall_3.png" width="688" height="37" />'; break; case 4: print '<img src="template/img/programmas/cat_firewall_4.png" width="688" height="37" />'; break; break; case 2: switch (tel_software(8,$_SESSION["ID"])) { case 1: print '<img src="template/img/programmas/cat_criticalattack_1.png" width="688" height="37" />'; break; case 2: print '<img src="template/img/programmas/cat_criticalattack_2.png" width="688" height="37" />'; break; case 3: print '<img src="template/img/programmas/cat_criticalattack_3.png" width="688" height="37" />'; break; case 4: print '<img src="template/img/programmas/cat_criticalattack_4.png" width="688" height="37" />'; break; break; default: switch (tel_software(7,$_SESSION["ID"])) { case 1: print '<img src="template/img/programmas/cat_firewall_1.png" width="688" height="37" />'; break; case 2: print '<img src="template/img/programmas/cat_firewall_2.png" width="688" height="37" />'; break; case 3: print '<img src="template/img/programmas/cat_firewall_3.png" width="688" height="37" />'; break; case 4: print '<img src="template/img/programmas/cat_firewall_4.png" width="688" height="37" />'; break; default: print '<img src="template/img/programmas/cat_firewall_1.png" width="688" height="37" />'; } ?>
|