This commit is contained in:
Michael RICOIS 2012-03-05 15:46:40 +00:00
parent 18869a8e31
commit b7185d60c3

View File

@ -74,7 +74,7 @@ foreach($keys as $key) {
echo $sql = 'SELECT MIN('.$key.') AS min, MAX('.$key.') AS max FROM etablissements_act';
//$dbMetier->setFetchMode(Zend_Db::FETCH_ASSOC);
$stmt = $dbMetier->query($sql);
$result = $stmt->fetchRow($sql);
$result = $stmt->fetchObject();
print_r($result);
exit;
@ -82,8 +82,8 @@ foreach($keys as $key) {
//Insertion
$data = array(
'cle' => $key,
'min' => $result['min'],
'max' => $result['max'],
'min' => $result->min,
'max' => $result->max,
);
$db->insert('minmax', $data);