Hi! I would like to display my records in 5 columns like this
record1 record2 record3 record4 record5
record6 record7 record8 record9 record10
I tried this modification but it displays only two columns
print "<table>"; for (0 .. $numhits - 1) { unless ($_ % 2) { print "<tr>"; } print "<td>"; &html_record (&array_to_hash($_, @hits)); print "</td>"; if ($_ % 2) { print "</tr>"; } } if (($numhits-1) % 2) { print "<td></td></tr>"; }
I tried also Jpdeni modification but it doesn't work
Thanks
record1 record2 record3 record4 record5
record6 record7 record8 record9 record10
I tried this modification but it displays only two columns
print "<table>"; for (0 .. $numhits - 1) { unless ($_ % 2) { print "<tr>"; } print "<td>"; &html_record (&array_to_hash($_, @hits)); print "</td>"; if ($_ % 2) { print "</tr>"; } } if (($numhits-1) % 2) { print "<td></td></tr>"; }
I tried also Jpdeni modification but it doesn't work
Thanks