How can I increment a column in mysql using prepared statements?
<p>Without prepared statements one can simply use "SET column=column+1" to increment a column. However I can't seem to get this working using prepared statements. If it's even possible, what am I doing wrong here?</p>

<pre><code>&lt;?php

$mysqli = new mysqli('host', 'user', 'pass', 'database');

$query = "UPDATE forums_topics SET posts=? WHERE id=?";

if ($stmt = $mysqli-&gt;prepare($query)) {
    $stmt-&gt;bind_param('ii', 'posts' + 1, 1);

    $stmt-&gt;execute();

    $stmt-&gt;close();
}
</code></pre>
