Hamed
July 23rd, 2008, 06:24
I code an script which has some categories (I make table for it)and I have some items which I can see them in their category.
Now I make a page which show selected categories with their items for e.g: cats with ids: 1,4,3,5. (I make a SELECT for each cat and show items with options)
Now I want to insert selected cats and items in to database (Table by the name pcs).
But I have one problem categories that I select to show are not stable and they might be change (Add more cats to show or ...) Now how can insert them to database with php for e.g:"cat_1:item_4,cat_7:item_76" how can I read it and how can I insert it? and how to update?
Now I make a page which show selected categories with their items for e.g: cats with ids: 1,4,3,5. (I make a SELECT for each cat and show items with options)
Now I want to insert selected cats and items in to database (Table by the name pcs).
But I have one problem categories that I select to show are not stable and they might be change (Add more cats to show or ...) Now how can insert them to database with php for e.g:"cat_1:item_4,cat_7:item_76" how can I read it and how can I insert it? and how to update?