Thanks to all of you for your help.
At the moment while very appreciative of all the help but I’m still frustrated or just thick as I can’t seem to get anything working. So far I have tried this:
Code: Select all
<table width="100%" border="1">
<tr>
<td><h2>250 Championship</h2></td>
</tr>
<tr><td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<?php $suffixes = array('_even', '_odd');$iter = 0;
do { $classSuffix = $suffixes[++$iter % 2]; ?>
<tr align="center">
<td><h1>Name</h1></td>
<td><h1> </h1></td>
<td><h1>Cookstown</h1></td>
<td><h1>Tandragee</h1></td>
<td><h1>NW200</h1></td>
<td><h1>Athea</h1></td>
<td><h1>Skerries</h1></td>
<td><h1>Southern</h1></td>
<td><h1>Walderstown</h1></td>
<td><h1>Kells</h1></td>
<td><h1>Faugheen</h1></td>
<td><h1>Mid-Antrim</h1></td>
<td><h1>UGP</h1></td>
<td><h1>Killalane</h1></td>
<td><h1>Scarborough</h1></td>
<td><h1>Total</h1></td>
</tr>
<?php do { ?>
<? $TotalScore = $row_get250Results['cookstown'] +
$row_get250Results['tandragee'] +
$row_get250Results['northwest'] +
$row_get250Results['athea'] +
$row_get250Results['skerries'] +
$row_get250Results['southern'] +
$row_get250Results['walderstown'] +
$row_get250Results['kells'] +
$row_get250Results['midantrim'] +
$row_get250Results['ugp'] +
$row_get250Results['killalane'] +
$row_get250Results['scarborough']; ?>
<tr>
<td><p><?php echo $classSuffix; ?><?php echo $row_get250Results['f_name']; ?></p></td>
<td><p><?php echo $classSuffix; ?><?php echo $row_get250Results['l_name']; ?></p></td>
<td align="center" class="simple"><p><?php echo $classSuffix; ?><?php echo $row_get250Results['cookstown']; ?></p></td>
<td align="center" class="innerborder"><p><?php echo $classSuffix; ?><?php echo $row_get250Results['tandragee']; ?></p></td>
<td align="center" class="innerborder"><p><?php echo $classSuffix; ?><?php echo $row_get250Results['northwest']; ?></p></td>
<td align="center" class="innerborder"><p><?php echo $classSuffix; ?><?php echo $row_get250Results['athea']; ?></p></td>
<td align="center" class="innerborder"><p><?php echo $classSuffix; ?><?php echo $row_get250Results['skerries']; ?></p></td>
<td align="center" class="innerborder"><p><?php echo $classSuffix; ?><?php echo $row_get250Results['southern']; ?></p></td>
<td align="center" class="innerborder"><p><?php echo $classSuffix; ?><?php echo $row_get250Results['walderstown']; ?></p></td>
<td align="center" class="innerborder"><p><?php echo $classSuffix; ?><?php echo $row_get250Results['kells']; ?></p></td>
<td align="center" class="innerborder"><p><?php echo $classSuffix; ?><?php echo $row_get250Results['faugheen']; ?></p></td>
<td align="center" class="innerborder"><p><?php echo $classSuffix; ?><?php echo $row_get250Results['midantrim']; ?></p></td>
<td align="center" class="innerborder"><p><?php echo $classSuffix; ?><?php echo $row_get250Results['ugp']; ?></p></td>
<td align="center" class="innerborder"><p><?php echo $classSuffix; ?><?php echo $row_get250Results['killalane']; ?></p></td>
<td align="center" class="innerborder"><p><?php echo $classSuffix; ?><?php echo $row_get250Results['scarborough']; ?></p></td>
<td align="center" class="innerborder"><p><?php echo $classSuffix; ?><?php echo $TotalScore?></p>
</td>
</tr>
<?php } while ($row_get250Results = mysql_fetch_assoc($get250Results)); ?>
</table>
</td>
</tr>
</table> <?php } ; ?>
But I keep getting various errors most notably:
“Parse error: syntax error, unexpected ';', expecting T_WHILE in C:\Inetpub\wwwroot\two_stroke\TMPuo6p6hs8gf.php on line 115”
I have also added to my CSS the following to support the above:
Code: Select all
.trOne {
background-color: #0000FF;
}
.trTwo {
background-color: #990000;
}
I then went on and tried this:
Code: Select all
<table width="100%" border="1">
<tr>
<td><h2>250 Championship</h2></td>
</tr>
<tr><td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr align="center">
<td><h1>Name</h1></td>
<td><h1> </h1></td>
<td><h1>Cookstown</h1></td>
<td><h1>Tandragee</h1></td>
<td><h1>NW200</h1></td>
<td><h1>Athea</h1></td>
<td><h1>Skerries</h1></td>
<td><h1>Southern</h1></td>
<td><h1>Walderstown</h1></td>
<td><h1>Kells</h1></td>
<td><h1>Faugheen</h1></td>
<td><h1>Mid-Antrim</h1></td>
<td><h1>UGP </h1></td>
<td><h1>Killalane</h1></td>
<td><h1>Scarborough</h1></td>
<td><h1>Total</h1></td>
</tr>
<?php do { ?>
<? $TotalScore = $row_get250Results['cookstown'] +
$row_get250Results['tandragee'] +
$row_get250Results['northwest'] +
$row_get250Results['athea'] +
$row_get250Results['skerries'] +
$row_get250Results['southern'] +
$row_get250Results['walderstown'] +
$row_get250Results['kells'] +
$row_get250Results['midantrim'] +
$row_get250Results['ugp'] +
$row_get250Results['killalane'] +
$row_get250Results['scarborough'];
while($row = row_get250Results)
{
$class = ($class == 'trTwo') ? 'trOne' : 'trTwo';
//echo "<tr class = '$class'><td></td></tr>
echo ?> "<tr class = '$class'>
}
<td ><p><?php echo $row_get250Results['f_name']; ?></p></td>
<td ><p><?php echo $row_get250Results['l_name']; ?></p></td>
<td align="center"><p><?php echo $row_get250Results['cookstown']; ?></p></td>
<td align="center"><p><?php echo $row_get250Results['tandragee']; ?></p></td>
<td align="center"><p><?php echo $row_get250Results['northwest']; ?></p></td>
<td align="center"><p><?php echo $row_get250Results['athea']; ?></p></td>
<td align="center"><p><?php echo $row_get250Results['skerries']; ?></p></td>
<td align="center"><p><?php echo $row_get250Results['southern']; ?></p></td>
<td align="center"><p><?php echo $row_get250Results['walderstown']; ?></p></td>
<td align="center"><p><?php echo $row_get250Results['kells']; ?></p></td>
<td align="center"><p><?php echo $row_get250Results['faugheen']; ?></p></td>
<td align="center"><p><?php echo $row_get250Results['midantrim']; ?></p></td>
<td align="center"><p><?php echo $row_get250Results['ugp']; ?></p></td>
<td align="center"><p><?php echo $row_get250Results['killalane']; ?></p></td>
<td align="center"><p><?php echo $row_get250Results['scarborough']; ?></p></td>
<td align="center"><p><? echo $TotalScore?></p>
</td>
</tr>"
<?php } while ($row_get250Results = mysql_fetch_assoc($get250Results)); ?>
</table><? ; } ?>
</td>
</tr>
</table>
But again the among the many errors I get this is just one:
“Parse error: syntax error, unexpected ';' in C:\Inetpub\wwwroot\two_stroke\TMPuq52lhs8iy.php on line 98”
Sorry for the amount of code and the cry for help again but rather than give up I’d prefer to ask for more help.
Thanks very much
Brian