Leakyradiator
Technical User
As the result of using a couple of forms, I end up with the following lists being passed to the action page:
category list
147
101
102
103
145
and
subcategory list
147117
145114
the first three digits of the subcategory are the same as the category in which they reside, i.e., subcategory 147117 belongs to category 147. Not all categories have subcategories. (All subcategories belong to a category)
I want to be able to determine if the category has a subcategory. If not, I want to be able to insert the category into the database. If it does have a subcategory, I want to be able to put the category and the last three digits of the subcategory into the database.
Any help with how to do this is greatly appreciated.
category list
147
101
102
103
145
and
subcategory list
147117
145114
the first three digits of the subcategory are the same as the category in which they reside, i.e., subcategory 147117 belongs to category 147. Not all categories have subcategories. (All subcategories belong to a category)
I want to be able to determine if the category has a subcategory. If not, I want to be able to insert the category into the database. If it does have a subcategory, I want to be able to put the category and the last three digits of the subcategory into the database.
Any help with how to do this is greatly appreciated.