Skip to content
Advertisement

how to put products in loop to show all product

This my product list file in php which i try to show list of all products with the help of https://stackoverflow.com/a/48837052/12033292. My category table name is category and product table name is products. I get category name from another page and show all products in this page

Product list
I want to show all products but in output i see only one product in screen.

JavaScript

This is This is my output but i want to show my all products

Advertisement

Answer

If you want to see all your products you need to loop through all of the results you get from your query and echo each of the keys you need.

I didn’t test this code but here an example of how it should work:

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement