AV1611 Posted May 31, 2006 Share Posted May 31, 2006 Need some suggestion on how to write this script... (PHP/MySQL)let me describe the table:(field names - example)partnumber - 1122.123compliant - YESmfg1 - AMDmfg1pn - 74hc123compliant1 - nmfg2 - AMDmfg2pn - 74hc123compliant2 - ymfg3 - AMDmfg3pn - 74hc123compliant3 - nthere is a second table called archives partnumber - 2222.123mfg - AVXmfgpn - 1N123compliant - n----------------OK,what the script needs to do is first select all the records that have compliant = YESthen it needs to move all mfgx/mfgpnx/compliantx triplets to the archive table IF the compliantx=n so,when it is finished, all records where compliant = YES have ONLY compliant mfgx/mfgxpn/compliantx=yANDall records that have compliant != YES have no change.sounds easy, until you go to write it...You should know the tables above are simplified, actually, there are 5 triplets per record, and about 30 fields, but I can sort all that out...Thanks Link to comment https://forums.phpfreaks.com/topic/10866-need-help-writing-this-one/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.