The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GetRoles
#4
It works fine for me. I'm guessing you're not passing in the user id. If you pass in
Code:
getRoles(1);
It's always going to show you the roles for user 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:
}
  Reply


Messages In This Thread
GetRoles - by shoropio - 02-06-2018, 12:45 AM
GetRoles - by mudmin - 02-06-2018, 12:49 AM
GetRoles - by shoropio - 02-06-2018, 12:52 AM
GetRoles - by mudmin - 02-06-2018, 12:57 AM
GetRoles - by mudmin - 02-06-2018, 12:57 AM
GetRoles - by shoropio - 02-06-2018, 01:23 AM
GetRoles - by shoropio - 02-06-2018, 01:35 AM
GetRoles - by shoropio - 02-06-2018, 02:20 AM
GetRoles - by mudmin - 02-06-2018, 02:34 AM
GetRoles - by shoropio - 02-06-2018, 03:09 AM
GetRoles - by mudmin - 02-06-2018, 03:47 AM
GetRoles - by shoropio - 02-06-2018, 01:39 PM
GetRoles - by mudmin - 02-06-2018, 01:42 PM
GetRoles - by shoropio - 02-06-2018, 02:41 PM
GetRoles - by shoropio - 02-06-2018, 02:42 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)