|
Posted by tg-php on 11/14/05 21:59
Depending on how strict your requirements are for the table layout, you could always do something like this:
<tr>
<td>
Item 1<br>
Item 2<br>
Item 3<br>
Item 4<br>
Item 5
</td>
<td>
Item 6<br>
Item 7<br>
Item 8<br>
Item 9<br>
Item 10
</td>
</tr>
Each item isn't in it's own <TD>, but if they don't have to be, then that could be a solution.
Or, as someone else mentioned I believe, you could pre-load the results into another array structured how you want it to be.
Depending on the specifics, there are probably other methods.
-TG
= = = Original message = = =
Greetings all,
I have a question.
I want to display a group of records pulled form a MySQL db in the following
fashion.
1 6
2 7
3 8
4 9
5 10
Now I can easily figure out how to display the records as
1 2
3 4
5 6
7 8
9 10
But since I am in an HTML table and the need to display the <TR> and </TR> I
am not sure how to make th logic so that I can get the first listing. Can
anyone help me out?? Need more information??
Thanks
Phillip
___________________________________________________________
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.
[Back to original message]
|