Oh. Every 3?
Try this-- untested--
PHP Code:
<table><tr>
<?php while ($row = mysql_fetch_array($rowquery)) { ?>
<td>
<p>stuff <?php echo $row['data']; ?> more stuff</p>
</td>
<?php
$three++;
if ($three % 3 == 0) echo "</tr>\n<tr>";
}
?>
</tr></table>
May act kinda weird if you don't have a number of items divisible by three, like 4 items or 5, etc.
To explain:
The basic idea here is in these two lines:
$three++;
if ($three % 3 == 0) echo "</tr>\n<tr>";
First, the variable "three" is just counting the number of entries already passed into the table.
If the remainder of $three/3 is 0 (to check if it's 3, 6, 9...), then echo end row (the first row is opened either in the last loop of 3 or at the very start), a line break (so the html looks right; you can play with this more), then a start row tag (the tag is closed either in the next loop or after the loops at the end.)