Here is a basic HTML example of tabular data output. The CSS format is entirely up to your needs, but here is the basic mechanics for outputting records from the database to an HTML table. Hope this helps.
<table cellpadding="0" cellspacing="0" class="mas-table" style="border-style: solid; width: 100%">
<!-- Output the header row -->
<tr class="mas-header">
<td style="width: 50px; text-align: center;">Record</td>
<td style="width: 280px">Name</td>
<td style="width: 200px">Company</td>
<td style="width: 194px">Address</td>
<td style="width: 104px">City</td>
<td style="width: 26px">State</td>
<td>Zip Code</td>
</tr>
<!-- Loop through your records (per-page set in viewer code) -->
<?php foreach ($masterRecords as $record): ?>
<?php $bgColor = (@$bgColor == '#F0F0F0') ? '#FFFFFF' : '#F0F0F0'; ?>
<!-- Output the data row and alternate the row colors -->
<tr cllass="mas-data" bgcolor="<?php echo $bgColor ?>">
<!-- Output cells across the row (6 in your case) -->
<td> <a href="<?php echo $record['_link'] ?>"><?php echo $record['rec_id'] ?></a></td>
<td><?php echo $record['first_name'] ?> <?php echo $record['last_name'] ?></td>
<td><?php echo $record['company'] ?></td>
<td><?php echo $record['address'] ?></td>
<td><?php echo $record['city'] ?></td>
<td><?php echo $record['state'] ?></td>
<td><?php echo $record['zip_code'] ?></td>
</tr>
<?php endforeach ?>
</table>
Ron Conring
Conring Automation Services
----------------------------------------
Software for Business and Industry Since 1987