title: Ternary operator variable and mysql?
body: <p>Will this work?</p>
  
  <pre><code>$username = mysql_real_escape_string(isset($_POST['username'])) ? $_POST['username'] : '';
  </code></pre>
  
  <p>I know the ternary operator will work but what about the real escape? And how can I check for future reference if the real escape is successful?</p>
  
  <p>Thanks</p>