PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
This is outputting all the products underneath each other, how can I output 3 products beside each other and the other underneath the same 3 beside each other?
Thanks in advance
Joe
Last edited by YoussefSiblini on Sat Dec 01, 2012 6:23 pm, edited 1 time in total.
Thank you, both solutions works perfect, I have question to social_experiment, wouldn't i be more than 3 so how the for loop keep working, sorry I just want to understand this so I don't keep asking.
We don't know what fields are in your database table, so we can't guess what it is you want to show in each row. If it's only the description, you don't need to write "Select * From products", in fact you should specify just the columns you need, then that will determine what values i should have in the for statement.