PHP Problems Regarding Coding?

Bob

New member
Hi, I'm having troubles coding this PHP script: I want this script to make it so any levels except 1 or 3 will be redirected to this "page," I'm just having problems with the: if ($rowname["level"] != (1 OR 3))
part, it's not doing what I intended for it.

if ($rowname["level"] != (1 OR 3)) { $page = Ignore this;
display("$page","Error",false,false,false); }
I also have this line right under it.

$queryname = doquery("SELECT * FROM {{table}} WHERE id='1' LIMIT 1", "ignore this");
 
Back
Top