I know this is has to do with some way the LIST results are coming out but the below script is giving me intermittent reults (as in accurate) when use to check to see if a user is a moderator. $userinfo['uid'] is checking the user cookie. If I have 2 moderators for the forum there is not problem. When I have 3 it fails to product a True when it should.
I would appriciate any help with this. Thanks - Jim
$modresult2 = mysql_query("SELECT m.user_id, u.uname FROM $pntablemod[moderators] m LEFT JOIN $pntable[users] u ON m.user_id = u.uid WHERE m.forum_id=$forum_id ORDER BY u.uname");
while(list($mod_id2) = mysql_fetch_row($modresult2)) {
if ($userinfo['uid']==$mod_id2) {
$modaccess2=True;
} else {
$modaccess2=False;
}
}