On Thu, 8 Jul 2004 18:17:25 -0500, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> for ($i = 0; $i < count($num_days); $i++) { [snip] > for ($j = 0; $j < 32; $j++) { [snip] > } [snip] > } > How do I fix it to where each date column has > exactly 32 rows of guest names? it looks like you need to set up your loops the other way around. right now your code is like this: for (columns) { for (rows) { } } you want: for (rows) { for (columns) { } } explained in english: you need to handle one row/person at a time and not one column/date at a time. on the other hand i'm not sure i totally understand your desired output, so maybe a quick ascii table would help me/us? chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php