Gossamer Forum
Home : Products : DBMan : Customization :

displaying records

Quote Reply
displaying records
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
Quote Reply
Re: [enriconeri] displaying records In reply to
 
Can you try with the placing %2 with %5?

Cheers,

Dat

Programming and creating plugins and templates
Blog