Edit multiple field without chaning the key using php
<p>One of my php application can have ability to create a collection with different pages(page id keep as primary key and collectionid as foreign key).After creating the collection we can edit  it or delete it.Now when we are edit the collection I am deleting all the entries which matches collection id and reinsert pages with new page id and same collection id.Please suggest me some more idea to do the same without changing the pageid.
Thanks </p>
