Hi,
When inserting or fetching in a DB,
the where condition must be of the following syntax (when using an array):
$where = array(
'id_photo = ?' => $pic,
'member_id = ?' => $memberId
);
But when updating, the above where close will generate a wrong Sql,
and need to apply another syntax :
$where = array(
$db->quoteInto('id_photo = ?', $pic),
$db->quoteInto('member_id = ?', $memberId)
);
It is quite confusing and incoherent
--
View this message in context:
http://www.nabble.com/DB%2C-where-clauses-tp15894580s16154p15894580.html
Sent from the Zend Framework mailing list archive at Nabble.com.