title: Need help binding parameters without question marks
body: <p>I am trying to update a row using prepared statements. I don't want to use question marks because it escapes all apostrophes. I am trying to bind it using :coloumn_name</p>
  
  <p>When I tried i keep on getting this error message...</p>
  
  <p>Call to a member function bind_param() on a non-object....</p>
  
  <p>Can someone please try to help me correct this. I have included my code below. Thanks!</p>
  
  <pre><code>    $query = "UPDATE categories SET category_name = :category_name WHERE id = :id ";
  $stmt = $db-&gt;prepare($query);
  $stmt-&gt;bind_param(":category_name,:id", $category_name, $id);
  </code></pre>