i got this idea from a ColdFusion tutorial i completed a Long while ago. haha-- my take on it is still there if you want to see the example of what it's does-- precisely what i want here, well-- i think i want this-- there's probably a better way to do it so the screen is less cluttered-- by allowing for multiple page views or something of that nature, but i'll start simple.
the idea is that as the array (a while loop would be fine) loops to echo the output to the screen, upon reaching every 4th (or 5th, etc-- doesn't matter) row, or new array key, that <tr> is closed, and a new <tr> is begun, thereby creating a "nice, neat" table grid, filled w/ all of the database entries. the ColdFusion code looks like this, and i want to do the same thing, if possible, w/ PHP (i've cut out the fat, showing only the part that makes the new rows):
<cfoutput query="concert_recordset">
<cfif concert_recordset.currentrow mod 3 eq 1>
<td><tr>
</cfif>
<td>
...snip...
</td>
<cfif concert_recordset.currentrow mod 3 eq 0>
<td>
</tr>
</cfif>
of course, i realize this isn't a ColdFusion forum, but i imagine even if you've never used the language, you can get the idea just from my description, and from the example link, what PHP function i need to reference. i'm just looking for a link to the right PHP manual page. if i can't figure it out, then i'll come back form help. if no similar function exists, then do you have an idea? maybe you have a better idea altogether to get the "same effect"?
thanks so much!
edit: btw, this has Nothing to do w/ that concert scheduler i've been working on-- this is something completely different, and much more simple. i just want to spit out records of contact info collection. row number, and first name to protect privacy- for purpose of showing "approximate interest" in a forthcoming seminar event for which i'm gathering mailing listi info. i want to allow visitors to click to see how many other people have already signed up.