Question
Maintaining a join table (PHP)
I am writing code to maintain a join table linking products
to accessories.
This relationship can be many to many.
So - when a product is updated, is it better to DELETE all join records and
then INSERT the new ones, or to only insert/update the ones that have
changed? The latter option seems a bit more complex to me.
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================
This relationship can be many to many.
So - when a product is updated, is it better to DELETE all join records and
then INSERT the new ones, or to only insert/update the ones that have
changed? The latter option seems a bit more complex to me.
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================
