Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter - escaping values before inserting in database - single quotes issue
#9

[eluser]Zigson[/eluser]
So, this would be the proper solution?

Code:
$data = array(
    'some_value'     => htmlentities($this->input->post('some_value')),

$this->db->insert($this->db->table, $data);

My inserted result in db is:
Code:
Test " ' test


Messages In This Thread
CodeIgniter - escaping values before inserting in database - single quotes issue - by El Forum - 10-15-2014, 01:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB