I have a sql query string to my database
I hope this mysql sql can find the database row create time plus one day less time now
sql ='SELECT * FROM `order` WHERE (DATE_ADD(DATE_FORMAT(`create_date`, '%Y-%m-%e %H:%i:%s'), INTERVAL 24 HOUR) <= now())
i know zf1 code
zf1
function test(){
$select = $this->select(true)->setIntegrityCheck(false);
$select->where("DATE_ADD(DATE_FORMAT(`om_created`, '%Y-%m-%e %H:%i:%s'), INTERVAL 24 HOUR) <= now()));
$data = $this->fetchAll($select);
}
Try this:
OR