Hey, I've been working on the next function, problem is that it ALWAYS returns false.....
$blaat = 'add_download, add_news, add_user, delete_user, delete_download, delete_user';
function rights ($needs, $rights) { //begin rights function
$right2 = explode(", ", $rights);
if(in_array("$needs", $right2)) { //begin if else rights toekennen
$right = 'yes'; } else { $right = 'no';
}
return $right; //end if else rights toekennen
} //end function rights
$test = rights("add_news", $rights);
echo 'Does it work?' .$test;
Why could that be???
Greets