Tabular formatting of DB query results?

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
mattcooper
Forum Contributor
Posts: 210
Joined: Thu Mar 17, 2005 5:51 am
Location: London, UK

Tabular formatting of DB query results?

Post by mattcooper »

Hi all,

I am trying to move on from simple tabular output:

Code: Select all

<table><tr>
<td>$data</td>
</tr></table>
To more complex tables - specifically, I would like to display results as:

Code: Select all

<table><tr colspan = "3">
<td>$data</td><td>$data</td><td>$data</td>
</tr></table>
This is so that the results of a db query on a catalogue do not simply display 1 result per table row, but 3.

Can anyone help me with the php fro this?

Thanks in advance!
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Useful Posts, first two links.
User avatar
mattcooper
Forum Contributor
Posts: 210
Joined: Thu Mar 17, 2005 5:51 am
Location: London, UK

Post by mattcooper »

Lovely, thank you Feyd...
Post Reply