Page 1 of 1

Tabular formatting of DB query results?

Posted: Fri Jun 16, 2006 9:19 am
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!

Posted: Fri Jun 16, 2006 9:22 am
by feyd
Useful Posts, first two links.

Posted: Fri Jun 16, 2006 9:24 am
by mattcooper
Lovely, thank you Feyd...