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';
|
echo $sql = 'SELECT MIN('.$key.') AS min, MAX('.$key.') AS max FROM etablissements_act';
|
||||||
//$dbMetier->setFetchMode(Zend_Db::FETCH_ASSOC);
|
//$dbMetier->setFetchMode(Zend_Db::FETCH_ASSOC);
|
||||||
$stmt = $dbMetier->query($sql);
|
$stmt = $dbMetier->query($sql);
|
||||||
$result = $stmt->fetchRow($sql);
|
$result = $stmt->fetchObject();
|
||||||
|
|
||||||
print_r($result);
|
print_r($result);
|
||||||
exit;
|
exit;
|
||||||
@ -82,8 +82,8 @@ foreach($keys as $key) {
|
|||||||
//Insertion
|
//Insertion
|
||||||
$data = array(
|
$data = array(
|
||||||
'cle' => $key,
|
'cle' => $key,
|
||||||
'min' => $result['min'],
|
'min' => $result->min,
|
||||||
'max' => $result['max'],
|
'max' => $result->max,
|
||||||
);
|
);
|
||||||
$db->insert('minmax', $data);
|
$db->insert('minmax', $data);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user