php URI troube with if statement,

Posted by sea_1987 on Stack Overflow See other posts from Stack Overflow or by sea_1987
Published on 2010-04-23T09:26:29Z Indexed on 2010/04/23 9:33 UTC
Read the original article Hit count: 332

Filed under:
|
|
|
|

I am running an if statement, that looks like this,

if($this->uri->segment(1) !== 'search' || $this->uri->segment(1) !== 'employment') {
    //dome something
}

My problem is that first condition works, if the uri segment 1 equals search then the method do not run however if I on the page employment, and the first segment of the uri is employment then the condition still runs, why is this?

© Stack Overflow or respective owner

Related posts about php

Related posts about codeigniter