re
Tekerson - i have a question related to what you said
[PHP]
$arr = array('some_id' => (int)$some_id, 'name' => $name, 'name2' => $name2);
$this->db->update('table', $arr, 'id ='.(int)$id);
[/PHP]
I am only doing trim() on $name and $name2, is this query safe? How should i escape the vars? Is Zend_Db doing it automagically?
Thanks!
|