02-06-2018, 12:57 AM
It works fine for me. I'm guessing you're not passing in the user id. If you pass in
It's always going to show you the roles for user 1.
What happens if you do
Code:
getRoles(1);
What happens if you do
Code:
$u = $db->query("SELECT id FROM users")->results();
Code:
foreach($u as $v){
Code:
echouser($v->id);
Code:
echo "-";
Code:
getRoles($v->id);
Code:
echo "<br>";
Code:
}