I should be able to figure this out, but no matter what I try, the result is, shall we say, less than stellar.
Here's the isssue: I have a MySQL db field containing as few as 0 and as many as 12 delineated values. I have no problem with the query to get those values.
What I need to do use them to format a table in such a way that the values will come out in table rows containing a max of 4 values before continuing to the next table row. In the end, it should be something like this:
<tr><td>$array[value1] $array[value2] $array[value3] $array[value4] </td></tr>
<tr><td>$array[value5] $array[value6] $array[value7] $array[value8] </td></tr>
Unless, of course, the number of values in the array is less than 4, or not divisible by 4, then it should close the <td> and <tr> after the last array value. Any help would be appreciated.