title: Get id of updated row in PDO
body: <p>I updated a row in database using PDO.            </p>
  
  <pre><code> $stmt = $db-&gt;prepare("UPDATE product SET price=? WHERE seller=?");
               $stmt-&gt;execute(array(456,"Apple"));
  </code></pre>
  
  <p>This didn't worked for me</p>
  
  <pre><code>$updated_id = $db-&gt;lastInsertId();
  </code></pre>
  
  <p>How can i get the id of that updated row.</p>