title: Changing from MSQL to MYSQLI real_escape_string $link
body: <p>Currently I am using <code>mysql_real_escape_string(trim($_POST['new_name']));</code> and it is working fine however when I change it to <code>mysqli_real_escape_string(trim($_POST['new_name']));</code> I am getting <code>Message: mysqli_real_escape_string() expects exactly 2 parameters, 1 given</code></p>
  
  <p>I am using codeigniter so my DB connection would be in the form of <code>$this-&gt;db</code>.</p>