title: PHP MySQL Update Query not working with vars
body: <pre><code>$ID = trim($_GET["uid"]);
  $Name = trim($_GET["name"]);
  
  $result = $mysqli-&gt;query("UPDATE `Benutzer` SET `R_NAME`='$Name' WHERE `ID` = '$ID'");
  </code></pre>
  
  <p>The Result returns fine, but the Database is not updated. If I replace the vars with static values the Database IS updated. </p>