Re: Walking through a bunch of MySQL Records

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux