Help with a few lines of code please

Discussion in 'Programming' started by adviceforall, Jul 15, 2007.

  1. #1
    Hi all need a little help here.

    I have this code here:

    if($oow->userlevel != "0"){
    print"<p class='warning'>You cant search staff !</p>";
    Code (markup):
    So here in this coding it only lets you search a user with a user level of 0 however I want it so they can search a user level of both 0 and 1

    I have tried adding "0,1" and "0;1" I have even put spaces in but it wont work does anyone know how I can make it so it lets people search a user level of 1 as well as 0??

    Help much appreciated.

    Thanks

    ~Rick~
     
    adviceforall, Jul 15, 2007 IP
  2. 2stamlers

    2stamlers Peon

    Messages:
    150
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    if($oow->userlevel != "0" && $oow->userlevel != "1"){
    print"<p class='warning'>You cant search staff !</p>";
    Code (markup):
    cheers
     
    2stamlers, Jul 15, 2007 IP
  3. adviceforall

    adviceforall Banned

    Messages:
    1,608
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks you so much + Reputation :)

    ~Rick~
     
    adviceforall, Jul 15, 2007 IP