How do I tell CodeIgniter ActiveRecord to NOT avoid my insert and update requests?

I need to send some xml that I trust (I wrote it) to my mysql database.

ActiveRecord avoids a lot of my XML. When I pull it out of the database, I do not use CodeIgniter, so I need pure XML in the database.

Thanks in advance.

+3
source share
1 answer

Read function set in the active record. Below is a snippet from the documentation.

. set() ($ escape), , FALSE. , ​​(), , .

$this->db->set('field', 'field+1', FALSE);
$this->db->insert('mytable');
// gives INSERT INTO mytable (field) VALUES (field+1)

$this->db->set('field', 'field+1');
$this->db->insert('mytable');
// gives INSERT INTO mytable (field) VALUES ('field+1')
+9

All Articles