0
check deal_time field value in phpmyadmin is less than or greater than current datetime stamp.
deal_time value stored in database in format('y/m/d h:m:s') 2012-12-17 11:05:28;

条件->

  $WhereBy = $this->db->dbprefix("product").".`Active` = 'Y' and ".$this->db->dbprefix("product"). ".`Deal_Time` <= NOW()"   ;

但它返回错误的结果。请告诉什么问题。提前致谢。

4

2 回答 2

3

我认为是 h:i:s 而不是 h:m:s 因为你会得到 month val for minutes

于 2012-12-17T11:13:44.523 回答
0

尝试日期(Deal_Time)<= NOW()

于 2012-12-17T10:19:18.937 回答