Forum Moderators: coopster
Let's say that I'm going to let people see my page if they are 'friendly' but not if they are 'troublemakers' and I set a flag
$troublemaker = 1;
if ($username!= 'ergophobe' &&!$troublemaker)
{
Let them in.
}
What do you mean to do there? Keep ergophobe out and any other user who is a troublemaker? Or keep out any user with the name 'ergophobe' or with the name '1'
your method would result in the latter case, but you probably want the former.