Correction SQL

This commit is contained in:
Michael RICOIS 2012-01-17 15:54:17 +00:00
parent 46c218eff9
commit b663d8fa17

View File

@ -101,7 +101,7 @@ if ( isset($opts->rapport) || isset($opts->rapportcomplet) )
$timestamp = mktime(0, 0, 0, date("m"), date("d")-1, date("Y"));
$hier = date('Y-m-d', $timestamp);
$sujet = "[Commandes Greffe - Erreur WebService] - ".$hier;
$sql = $commandesM->select()->where("(dateCommande BETWEEN '".$hier." 00:00:00' AND '".$hier." 23:59:59') AND erreur!='' AND dateReception='0000-00-00 00:00:00' ORDER BY dateCommande ASC");
$sql = $commandesM->select()->where("(dateCommande BETWEEN '".$hier." 00:00:00' AND '".$hier." 23:59:59') AND erreur!='' AND dateReception='0000-00-00 00:00:00' ORDER BY dateCommande ASC");
}
$repErreur = $commandesM->fetchAll($sql);