displaying rows

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!

Moderator: General Moderators

Post Reply
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

displaying rows

Post by aceconcepts »

Hi,

I am making a page that display data from a database such as products.

I am able to display 1 product per row but I want to be able to display 3 products per row.

How can I do this?

Thanks.
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

It depends on your existing HTML code. Are you using a table or a list?
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

Post by aceconcepts »

i am using tables
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

One more question, would you like the table to be ordered like:

Code: Select all

1 | 2 | 3
4 | 5 | 6
7 | 8 | 9
or

Code: Select all

1 | 4 | 7
2 | 5 | 8
3 | 6 | 9
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

Post by aceconcepts »

I would like it to be ordered like the first example 1 2 3
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Take a look at Useful Posts; the first link in it.
Post Reply