Jump to content

[SOLVED] Add <tr> Tags After Every 5 <td> Tags


Alpha_Link

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/177273-solved-add-tags-after-every-5-tags/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.