Re: Walking through a bunch of MySQL Records
| From: | tg-php at gryffyndevelopment dot com | Date: | Mon, 14 Nov 2005 19:59:39 +0000 |
| Subject: | Re: Walking through a bunch of MySQL Records | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-225768@lists.php.net to get a copy of this message | ||
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.