Advertisement
Guest User

Untitled

a guest
May 25th, 2015
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. $fec1=new MongoDate(strtotime($fecha_desde)." 00:00:00");
  2. $fec2=new MongoDate(strtotime($fecha_hasta)." 23:59:59");
  3.  
  4. $coll = $db->selectCollection('esh_pedidos');
  5.  
  6.  
  7. $cursor = $coll->find(array(
  8. '$and' => array(
  9. array('com_codigo'=>$cont->id_comercio),
  10. array('ped_createdat'=>array('$gte' => $fec1,'$lt' => $fec2)),
  11. array('ped_estado' => array('$ne' => "A")),
  12. array('ped_estado' => array('$ne' => "F")),
  13. array('ped_estado' => array('$ne' => "CASH-F"))
  14. )));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement