This may or may not be what's in the FAQ. There are a number of ways to accomplish the same thing.
Add the code in red below
<TABLE><TR><TD>FieldName</TD><TD>FieldName</TD><TD>FieldName</TD><TD>FieldName</TD></TR>\n|;
$i = 0;
for (0 .. $numhits - 1) {
if ($i % 0) { print "<TR bgcolor=\"#FFFFFF\">"; }
else { print "<TR bgcolor=\"#CCCCCC\">"; }
&html_record (&array_to_hash($_, @hits));
print "</TR>\n";
++$i;
}
print "</TABLE>";
Change the colors to fit your preference.
JPD
----------------------------------------------------
JPDeni's DBMan-ual
How to ask questions the smart way.
Add the code in red below
Code:
print qq| <TABLE><TR><TD>FieldName</TD><TD>FieldName</TD><TD>FieldName</TD><TD>FieldName</TD></TR>\n|;
$i = 0;
for (0 .. $numhits - 1) {
if ($i % 0) { print "<TR bgcolor=\"#FFFFFF\">"; }
else { print "<TR bgcolor=\"#CCCCCC\">"; }
&html_record (&array_to_hash($_, @hits));
print "</TR>\n";
++$i;
}
print "</TABLE>";
Change the colors to fit your preference.
JPD
----------------------------------------------------
JPDeni's DBMan-ual
How to ask questions the smart way.