I'm using the 2 Column Mod, but want to add empty "spacer" cells between the 2 columns. Can anyone help me? Thanks
$i = 1;
$cols = 2; # Change this to the number of columns you want
print "<table width=\"95%\" cellpadding=3 cellspacing=0 border=0>";
for (0 .. $numhits - 1) {
unless ($_%$cols) {
print "<tr>";
}
&html_record (&array_to_hash($_, @hits));
if ($_%$cols==($cols-1)) {
print "</tr>\n";
}
++$i;
}
if ($numhits%$cols) {
for ($j=($cols-1);$j>=$numhits%$cols ;$j--) {
print "<td> </td>";
}
print "</tr>\n";
}
print "</table>";
Code:
$i = 1;
$cols = 2; # Change this to the number of columns you want
print "<table width=\"95%\" cellpadding=3 cellspacing=0 border=0>";
for (0 .. $numhits - 1) {
unless ($_%$cols) {
print "<tr>";
}
&html_record (&array_to_hash($_, @hits));
if ($_%$cols==($cols-1)) {
print "</tr>\n";
}
++$i;
}
if ($numhits%$cols) {
for ($j=($cols-1);$j>=$numhits%$cols ;$j--) {
print "<td> </td>";
}
print "</tr>\n";
}
print "</table>";