[eluser]Zigson[/eluser]
I am having issue with inserting value in database. Somehow my value gets wrapped by single quotes. Value is escaped just in order, though.
Sample of value:
Test " ' test
Sample of value inserted in db:
'Test \" \' test'
I am using Active Record:
Code:
$data = array(
'some_value' => $this->db->escape($this->input->post('some_value')),
...
$this->db->insert('some_table', $data);
Any help much appreciated.