If conditional with or
<p>Here is my script:</p>

<pre><code>$user_data = user_data($name);

        if($user_data['type'] == 'clerk') { 
        } elseif ($user_data['type'] == 'admin' ){
        }else
        { header("Location: login_admin1.php");}

    }
</code></pre>

<p>If I am using an if statement with blank <code>{}</code> it works but as soon as I use this script it's not working.</p>

<pre><code> if($user_data['type'] != 'clerk' || $user_data['type'] != 'admin')
{ header("Location: login_admin1.php");}
</code></pre>

<p>I want to check if <code>$user_data['type']</code> is clerk or admin, (only clerk or  admin has access to page) can check page. If it's not one of them they can't access the page.</p>
