Hello, I want to export all product_ids with related category ids to a text file. And if a category has a parent category it needs to add the parent's code as shown below. "products_id table sample" 1 2 3 4 5 6 7 8 "products_to_categories table sample" products_id|categories_id 1|23 2|23 3|24 4|43 5| 6|43 7|43 8|43 1|44 2|43 8|44 7|44 1|43 2|44 "categories table sample" categories_id parent_id 23|0 24|0 43|23 44|24 final outcome needs to look like this, with each assigned category seperated by a comma: 1|23,24_44,23_43 2|23,23_43,24_44 3|24 4|23_43 5| 6|23_43 7|23_43,24_44 8|23_43,24_44 thank you
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
## Platform
osCommerce, Linux, MySQL, PHP