title: PDO Add One to Value
body: <p>I'm new to PDO, and I am trying to make a button, where, when the user pushes it, the value of a corresponding number is increased by one. </p>
  
  <pre><code>$statement = "UPDATE table SET counter=? WHERE id=?";
  $z = $db-&gt;prepare($statement);
  $z-&gt;execute(array($counter+1,$id));
  </code></pre>
  
  <p><code>$id</code> is being sent correctly, but I don't know how to add one to the counter.</p>