由於某種奇怪的原因,我無法調試這爲我的生活.. $ 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