Thank God for the safety net! Thanks Ray. I have more problems though in that I have to modify all of this for my new schema which incorporates options. With that in mind I'm trying to understand exactly what is happening in this section. From a high level we are building some sql strings to use in inserting the order details. There can be multiple rows for each purchase or row in the orders table. I don't understand why we are doing deletes here. Can you tell me from a high level why that happens? Then I have to change some columns and there is this column type thing going on.
$updateColType = "none,none,NULL|',none,''|',none,''|none,none,NULL|none,none,NULL";
It looks like we are building a two dimensional array for generating a sql string. Do you know from a high level what is going on there?
Thanks.