I need to use other database table ! So I used
prepare & execute query , but I would like to know is it safe from sql injection ? If not , what query method should I used ?
Note : This is not current APP database . It is another related database so I can't use phalcon model method
$this->db1 = $this->getDI()->getShared('db1'); $data['company'] = $this->db1->prepare("select * from table1 where id = :id"); $data['company']->execute(array("id"=>$id));