由于某种奇怪的原因,我无法调试这为我的生活.. $ this-> input-> post('post_page')= 10 ....我回显变量并且它在屏幕上打印10。 当它应该是真的时,这会一直返回假。 所以...有人可以帮我解决这个问题吗?我试图在每个检查周围放置单独的括号并更改||到OR ..仍然没有。IF statement not working with OR
这里是我的代码仍然:
if($this->input->post('post_page') <> 10
|| $this->input->post('post_page') <> 25
|| $this->input->post('post_page') <> 50
|| $this->input->post('post_page') <> 75) {
return false;
}
你想在这里做什么?这个if总是会返回false。 – looneydoodle