I populated the guest's name statically so I can see how the loop works. The looping is wrong and it only yields 7 rows. In the first row it has 1 column of data, the second row has two columns of data, the third one has three columns of data, and so on. How do I fix it to where each date column has exactly 32 rows of guest names?
Create the headers, use foreach for the guests and then foreach for the days. It is in the days elements where you need to put the results of your MySQL queries. An example:
<html> <tr><th>Day</th><th>Date</th> ... </tr> <?php foreach ($guestlist as $guest) { ?> <tr> <?php foreach ($query_result as $day) { ?> <td><?php echo $day; ?></td> <?php } ?> </tr> <?php } ?>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php