Correction execution de la requete

This commit is contained in:
Michael RICOIS 2012-03-05 15:39:45 +00:00
parent a97b6a01d6
commit 90eb13188e

View File

@ -73,7 +73,8 @@ foreach($keys as $key) {
//Lecture
$sql = 'SELECT MIN('.$key.') AS min, MAX('.$key.') AS max FROM etablissements_act';
$dbMetier->setFetchMode(Zend_Db::FETCH_ASSOC);
$result = $dbMetier->fetchAll($sql);
$stmt = $dbMetier->query($sql);
$result = $stmt->fetchAll($sql);
//Insertion
$data = array(