title: PHP - using update with variables
body: <p>I am using php to update a mysql DB within a function. I am able to echo my variable names and was able to return the variables on the php page. This proves to me that my variables are working correctly. </p>
  
  <p>Now when I use the update command, my DB does not respond. Yes, I have connected to the DB and it all works.</p>
  
  <p>This is what I am using to update: </p>
  
  <pre><code>mysql_query("UPDATE `table_name`
              SET `int_field` = '$int_value'
              WHERE `username` = $username");
  </code></pre>