title: Adding session variable into MYSQL query using PHP
body: <p>Im trying to pass two variables into a mysql query, and its getting stuck when passing the session variable in below:</p>
  
  <pre><code>$check = mysql_query("SELECT * 
                        FROM Clients 
                        WHERE Username = '$new_username' 
                        AND Username != '$_SESSION['Username']'") or die(mysql_error()); 
  </code></pre>
  
  <p>Any tips? Thanks in advance.</p>