Code: Select all
$act = $_GET['act'];
$acts = array('create_cat', 'create_subcat');
$actions = array('create_cat' => 'Create Catagory', 'creat_subcat ' => 'Create Sub Catagory');
foreach($actions AS $url => $link){
echo "<a href='admin.php?act=" . $url . "'>" . $link . "</a>";
}
but can someone please explain whats happening with everything else?
i have seen the outcome, but i am confused about the '=>' and how $url and $link become values.
Thanks xxx