[FX.php List] Newbie Needs Help

Lars Arl é r la at mediadesign.dk
Tue Oct 18 02:12:41 MDT 2005

> 1. The data rows displayed in alternating colors.

This is how it works for me, and I´m a newbie to and trying to grasp it ;-)
And I like to see exsamples to, so hope this helps you to

 <table width="100%" border="0" cellpadding="2" cellspacing="0">
<? $counter = 0;  foreach ($searchResult['data'] as $key => $searchData) {
if ($counter % 2 == 0) { $rowColor = '#ffffff'; } else { $rowColor =
'#dddddd'; } echo "<tr bgcolor=\"$rowColor\">\n";?>

                        <td width="72" align="left" class="Verdana_gray"><?
echo $searchData['recid'][0]; ?></td>                        <td width="124"
align="left" class="Verdana_gray"><? echo $searchData['category'][0];
?></td>                        <td width="95" align="center"
class="Verdana_gray"><? echo $searchData['stamp_text'][0]; ?></td>
<? echo "</tr>\n";                        ++$counter;
}?>    </table>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20051018/60a6a287/attachment.html

More information about the FX.php_List mailing list