Hello everyone,
I have a code to display images in a table for a specific ticket. I am needing the table to be 4 columns wide then repeat until there is no more images to show.
Here is my code:
<?php
$folder = "images/ticket_images/".$_REQUEST['ticketid']."/";
$filetype = '*.*';
$files = glob($folder.$filetype);
echo '<table><tr>';
for ($i=0; $i<count($files); $i++) {
echo '<td>';
echo '<a name="'.$files[$i].'" href="'.$files[$i].'"><img width="100" height="100" src="'.$files[$i].'" /></a>';
echo '</td>';
}
echo '</tr></table>';
?>
Any help would be great.
Thanks,
Patrick