title: Codeigniter allowing single quote in insert query
body: <p>Hello i have read that "Codeigniter update and insert function values are escaped automatically producing safer queries."</p>
  
  <p>But i tried to insert the data with the single quote in my contactUs form. But i have noticed that single quote is added in my database.</p>
  
  <p>Here is my code</p>
  
  <p><strong>Controller</strong>:</p>
  
  <pre><code>        $data=array('name'=&gt;$this-&gt;input-&gt;post('name'),'EmailId'=&gt;$this-&gt;input-&gt;post('emailid'));
  
          $this-&gt;mymodel-&gt;insert_data('mytable',$data);//Sending data to the model
  </code></pre>
  
  <p><strong>Model</strong></p>
  
  <pre><code>    public function insert_data($table,$data)
  {
      $this-&gt;db-&gt;insert($table,$data);
      return 'success.';
  }
  </code></pre>
  
  <p>Any suggetions???</p>
  
  <p>Thanks in Advance</p>