Help with TABLE LAYOUT PLEASE

3 posts by 2 authors in: Forums > CMS Builder
Last Post: April 20, 2009   (RSS)

Re: [dsn7287] Help with TABLE LAYOUT PLEASE

By zaba - April 20, 2009

You just need to wrap it all up in a table....
<h1>Fixtures</h1>
<table border="0" cellspacing="5" cellpadding="0">
<tr>
<td>Date</td>
<td>Home Team</td>
<td>&nbsp;</td>
<td>Away Team</td>
<td>Type</td>
<td>&nbsp;</td>
</tr>
<!-- STEP2: Display Records (Paste this where you want your records to be listed) -->
<?php foreach ($fixturesRecords as $record): ?>
<tr>
<td><?php echo date("D, M jS, Y g:i:s a", strtotime($record['date_and_time'])) ?></td>
<td><?php echo $record['home_team'] ?></td>
<td><?php echo $record['vs'] ?></td>
<td><?php echo $record['away_team'] ?></td>
<td><?php $matchtype = $record['match_type'] ?></td>
<td><a href="<?php echo $record['_link'] ?>"><img alt="view" src="view.gif" /></a></td>
</tr>
<?php endforeach; ?>
</table>

Re: [zaba] Help with TABLE LAYOUT PLEASE

By dsn7287 - April 20, 2009

mte thank you so very much! it was a great help! :)