debug
This commit is contained in:
parent
18869a8e31
commit
b7185d60c3
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user