Can you please suggest what shall i do.
// 7. Obtain the unique ID for the newly created entry
$id_obj = $db->query('SELECT_LAST_INSERT_ID()');
$id = $id_obj->fetch();
$id_obj->closeCursor();
Had already seen other two answers here before posting.There is no specific solution and my problem is different.