[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]status[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700]) {[/COLOR] [COLOR= #FF8000]//Waneer status 1 (admin) is[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]admin.php[/COLOR][COLOR= #007700]);[/COLOR] [COLOR= #FF8000]// Include de adminpagina, of plaats hier gewoon de hele code oid[/COLOR]
[COLOR= #007700]}[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR] [COLOR= #FF8000]//Waneer status iets anders is al 1 (dus geen admin)[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]noadmin.php[/COLOR][COLOR= #007700]);[/COLOR] [COLOR= #FF8000]// Include de niet-adminpagina, of plaats hier gewoon de hele code o.i.d.[/COLOR]
[COLOR= #007700]}[/COLOR]
?>
Ik wist niet precies wat ik moest selecteren, omdat er alleen iets wordt gevraagd of het bestaat. Dus als het id of rank was of wat dan ook maakte niet iets uit.