By the way, with fetchAll I got it working :

function getDefaultTypeAppointment($doctorId) {
        $db = Zend_Registry::get(My_Constant_App::REG_DB_ADAPTER);
        $sql = 'SELECT * FROM types_appointment ' . 
                'WHERE doctor_id = ' . $doctorId . ' AND `default` = 1';
        return $db->fetchRow($sql);
}


I have only problems with update above :-(
-- 
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Quote-reserved-keywords-tp2525558p2525707.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to