title: mysqli_real_eascape_string gives error
body: <p>I have a problem with mysql real escape string. </p>
  
  <pre><code>&lt;?php
  // Create connection
  $con=mysqli_connect("localhost","xxxx","xxxx","xxxx");
  
   // Check connection
   if (mysqli_connect_errno())
    {
    echo "Failed to connect to MySQL: " . mysqli_connect_error();
     }
  else{ echo"connected";}
  ?&gt;
  </code></pre>
  
  <p>Now it echos connection. so this works fine. (I tried adding stuff into the db and that also works fine.</p>
  
  <p>Now I try to do a mysqli_real_escape_string like this:</p>
  
  <pre><code>$email_address = $con-&gt;mysqli_real_escape_string($_POST['email']); 
  </code></pre>
  
  <p>But this gives me a error:</p>
  
  <blockquote>
    <p>Fatal error: Call to undefined method mysqli::mysql_escape_string() in
    Blabla/blabla.php on line 15 </p>
  </blockquote>
  
  <p>(the line where I call the escape string)</p>
  
  <p>Anyone has any idea what I'm doing wrong?</p>