in the loop you could put this:
if($col=1) {
$col=2 ;
}
else {
$col=1
}
This would alternate between $col=1 and $col=2 each time the loop runs
so in the loop under it you could put
if($col=1) {
print "<tr><td>this will be colum 1, put your var here</td>" ;
}
if($col=2) {
print "<td>this will be colum 2, put your var here</td></tr>" ;
}
does that make sense to you?
try it out anyway because it should work 🆒