title: Getting the insert and update ID with PDO
body: <p>Im trying to get the <code>mysql_insert_id</code> using PDO.
  Thus far i've not found a good example that works with both inserting and updating.
  Does anyone have a piece of complete code as example?</p>