Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $fec1=new MongoDate(strtotime($fecha_desde)." 00:00:00");
- $fec2=new MongoDate(strtotime($fecha_hasta)." 23:59:59");
- $coll = $db->selectCollection('esh_pedidos');
- $cursor = $coll->find(array(
- '$and' => array(
- array('com_codigo'=>$cont->id_comercio),
- array('ped_createdat'=>array('$gte' => $fec1,'$lt' => $fec2)),
- array('ped_estado' => array('$ne' => "A")),
- array('ped_estado' => array('$ne' => "F")),
- array('ped_estado' => array('$ne' => "CASH-F"))
- )));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement