Jump to content

Archived

This topic is now archived and is closed to further replies.

holowugz

If statement problem

Recommended Posts

Hi i am having a slight problem with an if statement i need it to do the following:
if the value of do in the request superglobal array is set to alter, and the person usergroup id is 6 OR their is a 6 in there membergroupids then execute some code.

[code]
$_REQUEST['do']= "alter";
$citac->userinfo['membergroupids'] = "1,2,3,4,5,6";


if($_REQUEST['do'] == 'alter' AND ($citac->userinfo['usergroupid'] == 6 OR in_array(6,array($citac->userinfo['membergroupids'])))){
echo "test";
}

[/code]
theoretically that should echo test but it doesnt, can anyone see something wrong?

thanks in advance,
Luke

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.