Welcome Guest, Not a member yet? Register   Sign In
Single quotes not being escaped

I'm running CI 1.7, php 5 and magic quotes = on,
and not sure why my db inserts are not getting escaped:

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

if I insert a value such as

$title = 'This has single '' quotes ' in it ' ';
$data = array('title' => $title)

The single quotes are not escaped. My understanding was that the
activerecords escaped them for you. Please help,


Theme © iAndrew 2016 - Forum software by © MyBB