title: Php mysqli update column using variable name
body: <p>I'm new to php and mysqli. I'm trying to update a column whose name is passed through a variable.</p>
  
  <pre><code>$statement = mysqli_prepare($con, "UPDATE Table SET $columnname = $columnupdate WHERE user_id = ?");
  </code></pre>
  
  <p>Am I being a pleb or should this work?</p>