Posted by monomaniac21 on 01/22/06 15:04
Hi all
Does anyone know of an efficient way to retreive data from a mysql db
and display the record rows as collumns?
I have been doing this:
<display headers>
<while ($row = mysql_fetch_array($result)) { >
<display row 1 of result>
<display row 2... } >
<end table>
but I want to do this instead:
<col 1 header > <row 1 col 1> <row 2 col1> <row3 col1>
<col 2 header> <row 1 col 2> <row 2 col2> <row3 col2>
<col 3 header> <row 1 col 3> <row 2 col3> <row3 col3>
any ideas?
Navigation:
[Reply to this message]
|