how does codeigniter sanitize inputs?

后端 未结 3 700
执笔经年
执笔经年 2021-02-05 23:33

I\'m building a Codeigniter application and I\'m trying my hardest to prevent SQL injections. I\'m using the Active Record method to construct all my queries. I know Active Rec

3条回答
  •  离开以前
    2021-02-05 23:49

    You can always see the latest query made by using the last_query() method.

    $this->db->last_query()

    You will see exactly how the query looked, so you can verify if sanitized properly.

提交回复
热议问题