2014-03-30 54 views

回答

0

結賬this page

$this->Post->find('all', array('conditions' => array(
    'status' => 1, 
    'from_date BETWEEN ? AND ?' => array($from_date, $last_date) 
))); 
+0

如果當前日期介於from_date和last_date之間,那麼只會顯示帖子。我將在CakePHP函數中使用CURDATE()? – Tushar

+0

嘗試''from_date BETWEEN? AND CURDATE()''''array($ from_date)' – cornelb

相關問題