Author Topic: [SOLVED] Add <tr> Tags After Every 5 <td> Tags  (Read 194 times)

0 Members and 1 Guest are viewing this topic.

Offline Alpha_LinkTopic starter

  • Irregular
  • Posts: 5
  • Gender: Male
  • World Zelda Music Radio Admin
    • View Profile
    • World Zelda Music Radio
[SOLVED] Add <tr> Tags After Every 5 <td> Tags
« on: October 10, 2009, 11:59:57 PM »
I'm writing out a PHP script that will list the results of a search query, but I want it so that it is listed in <td> tags of a table (5 results horizontally on a page) but then add in a set of </tr><tr> tags after every 5 results to begin a new row of results and so forth.  All of this is being done in a "while" loop function.  How would I go about doing that?
« Last Edit: October 11, 2009, 12:04:09 AM by Alpha_Link »

Offline thorpe

  • Administrator
  • 'Mind Boggling!'
  • *
  • Posts: 29,256
    • View Profile
Re: Add <tr> Tags After Every 5 <td> Tags
« Reply #1 on: October 11, 2009, 12:09:58 AM »
Check out this thread within the FAQ / Code repository board.

Offline Alpha_LinkTopic starter

  • Irregular
  • Posts: 5
  • Gender: Male
  • World Zelda Music Radio Admin
    • View Profile
    • World Zelda Music Radio
Re: Add <tr> Tags After Every 5 <td> Tags
« Reply #2 on: October 11, 2009, 12:12:26 AM »
Oh, that'll do!  Thanks!  :D