Echo query before execution and without execution in codeigniter Active Record

后端 未结 5 1684
后悔当初
后悔当初 2020-12-08 10:43

I am looking for a way to see generated string of the query but without executing it.

Note that the query hasn\'t been executed before. (I do not wa

5条回答
  •  囚心锁ツ
    2020-12-08 11:20

    As of version 3 of Codeigniter, please refer to this url and also to this.

    • echo $this->db->update_string(); OR echo $this->db->get_compiled_update();
    • echo $this->db->insert_string(); OR $this->db->get_compiled_insert();
    • echo $this->db->get_compiled_delete();
    • echo $this->db->get_compiled_select();

提交回复
热议问题