thanks for the links.
reading through them though, i can not seem to apply any of the examples to my code.
$sql = "select * from images";
$result = mysql_query($sql);
$num_results = mysql_num_rows($result);
echo "<images>\n";
echo "<table border='1' cellpadding='0' cellspacing='6' bordercolor='#000000'>";
for($i=0;$i<$num_results;$i++)
{
$row = mysql_fetch_array($result);
if(($i%6)==0)
{
echo "<tr>\n";
}
echo "<td>";
echo "<a href=\"display.php?file=".$row['pic_path']."&pic_descrip=". $row['pic_descrip']."&pic_area=" . $row['pic_area']."\"><img src=\"".$row['thum_path']."\" border='0'></a>";
echo "</td>\n";
if (($i%6)==5)
{
echo "</tr>\n";
}
}
echo "</table>\n";
-------------------------------
I currently have 12 images in the DB.
if anyone could apply code to this so that it allows 3 images per page (just as a test) that would be great.
as a been stuck on this for a while now.
many thanks in advance.