Here is pictorial Question with 3 screenshots: http://imgur.com/a/94vrg
Could you show your "Products" database schema? When I look your code, I see "$product->productCategoryID". If you keep your category name in database, you can use "$product->productCategoryName".
PS: If your Category Name rows name is "productCategoryName", you can use this. But if your Category Name rows name is different than "productCategoryName" you can't use "productCategoryName". You have to use your rows name.
Want to reply to this thread?