Sorry friends, i found the problem.
It's a problem of timing since i'am in a transaction.
All right.
Il 29/12/2011 16:24, Antonio Caccese ha scritto:
Hi,
I have the following query:
$sql = "SELECT SUM(quantita - scarico) as giacenza FROM magazzino
WHERE idArticolo = $idArticolo";
$statement = $this->_db->query($sql);
$row = $statement->fetch();
Finally, i get $row['giacenza']
On my database's client the result of the query is right but fetching
the result from my application it returns always 0.00
Why?
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]