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