title: Codeigniter Deprecated: mysql_real_escape_string():
body: <p>Got below error while using codigniter 3.0</p>
  
  <pre><code>FYI using PHP Version 5.5.12,Apache Version Apache/2.4.9 (Win64) PHP/5.5.12
  </code></pre>
  
  <blockquote>
    <p>A PHP Error was encountered</p>
    
    <p>Severity: 8192</p>
    
    <p>Message: mysql_real_escape_string(): The mysql extension is deprecated
    and will be removed in the future: use mysqli or PDO instead</p>
    
    <p>Filename: models/common_model.php</p>
    
    <p>Line Number: 21</p>
    
    <p>Backtrace:</p>
    
    <p>File: C:\wamp\www\Codeigniter\application\models\common_model.php
    Line: 21 Function: mysql_real_escape_string</p>
  </blockquote>