title: PHP mysql injection protection
body: <p>I have written this short function to protect against my_sql injection, because of its importance I just want to double check with other's that this will function as I intend.</p>
  
  <pre><code>foreach($_REQUEST as $key =&gt; $value) {          
      $_REQUEST[$key] = stripslashes($value);
      $_REQUEST[$key] = mysql_real_escape_string($_REQUEST[$key]);
  } 
  </code></pre>