title: mysqli_real_escape_string not escaping anything
body: <p>I am using <a href="http://php.net/manual/en/mysqli.real-escape-string.php" rel="nofollow">mysqli_real_escape_string</a> to escape single and double quotes etc. but it is not escaping anything. My code is as follows</p>
  
  <pre><code>$con = mysqli_connect("ip","db","pw","db");
  $formtext = $_POST['formtext'];
  $formtext = mysqli_real_escape_string($con, $formtext);
  mysqli_query($con, "INSERT into table (formtext) VALUES ('$formtext')")
      or die();
  </code></pre>
  
  <p>After inserting into the table the 'formtext' field contains no escapes (backslashes).
  What are the possible reasons for this to be happening?</p>