How can i output this into say 2 tables that hold 36 images a piece instead of using a simple <br>.
<?php
// number of images
$num = "72";
$galleries = file("gallery.txt");
shuffle($galleries);
for($i=0; $i<$num; $i++) {
$data = explode("|", $galleries[$i]);
if(strlen($data[1]) > 5) {
print("<A HREF=$data[0]><img src="$data[1]" alt="$data[2]" border="0"></A><BR>\n");
}
}
?>