title: mysqli bind_param not updating table in database
body: <p>I'm trying to update a table from a database with this code, but it keeps returning a fatal error</p>
  
  <pre><code>        $stmt = $mysqli-&gt;prepare("UPDATE $tbl_name SET cart = ? WHERE username = $myUsername");
          $stmt-&gt;bind_param('s', $chosenParts2);
          $stmt-&gt;execute(); 
          $stmt-&gt;close();
  </code></pre>