 <p>I'm a little confused to what you would like, would you like the PDO code to both update and delete items from your DB? If so I use this, I'm also new to PDO. Also try not to use ' around table/field names.</p> <pre><code>/** Code to update */ $query = "UPDATE tblNameRes SET name ='$name' WHERE id = :id"; $stmt = $db-&gt;prepare($query); $stmt-&gt;BindValue(':id', $id, PDO::PARAM_INT); $stmt-&gt;execute(); /** Code to delete */ $query = "DELETE FROM tblNameRes WHERE id = :id"; $stmt = $db-&gt;prepare($query); $stmt-&gt;BindValue(':id', $id, PDO::PARAM_INT); $query-&gt;execute(); </code></pre> <p>Let me know if this helps, or is not what you wanted. I'm new here so I can't post 'comments'.</p>