title: mysql_real_escape_string() for $_SESSION?
body: <p>How can i use the <code>mysql_real_escape_string()</code> function in my MySQL queries for <code>$_SESSION</code> variables? This is my code at this moment.
  Hope that someone can help me.</p>
  
  <p>Thanks :-)</p>
  
  <pre><code>&lt;input value='&lt;?php echo $_SESSION['reg']['data']['password1']; ?&gt;' 
  </code></pre>