Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Displaying MySQL Recordset In Two Table Columns

Guest
Dec 21, 2006 Dec 21, 2006
I've got a MySQL recordset which is displaying a list of companies and no other data. I want to display those companies so that there isn't just one long list on my page but instead have it divided between two columns in a table (or some other way). And if there's an odd number of companies I want the left column to display the extra. For example:

Company A Company F
Company B Company G
Company C Company H
Company D Company I
Company E

Thanks.
TOPICS
Server side applications
329
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 22, 2006 Dec 22, 2006
SilverR252 wrote:
> I've got a MySQL recordset which is displaying a list of companies and no other
> data. I want to display those companies so that there isn't just one long list
> on my page but instead have it divided between two columns in a table (or some
> other way).

If you're using PHP with MySQL, try the Horizontal/Vertical Looper
created by Tom Muck:

http://www.tom-muck.com/extensions/help/HorizontalVerticalLooperHelp/

--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Dec 22, 2006 Dec 22, 2006
LATEST
Thanks. That was exactly what I was looking for.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines