title: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead
body: <p>This is some strange problem I'm facing, my local machine runs php 5.6.3 while live server is running php 5.4. We recently updated our app from codeigniter 2.* to codeingiter 3.0, now while running on live server we came to know about this brand new issue (older one and still not working <a href="https://stackoverflow.com/questions/31482020/smtp-not-working-in-ci-3-0-while-same-code-is-working-in-ci-2">smtp</a>)</p>
  <blockquote>
  <p>A PHP Error was encountered</p>
  <p>Severity: 8192</p>
  <p>Message: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead.</p>
  <p>Filename: mysql/mysql_driver.php</p>
  <p>Line Number: 319</p>
  </blockquote>
  <p>Now after doing some googling, I found that top solution <a href="https://stackoverflow.com/questions/26169455/codeigniter-use-mysql-real-escape-string-instead-database-connection-issue">might be for ci 2.*</a> doesn't work as codeigniter's <code>mysql_drivers.php</code> file is already using <code>mysql_real_escape_string()</code>. One answer is suggesting that I should check <code>database.php</code> file. If my default connection is <code>mysql</code> instead of <code>mysqli</code> which is <code>mysqli</code>, now I've no way to find out what is going wrong or what I'm missing.</p>