<?php
$result = mysql_query("SELECT *** FROM *** $link);
$num_rows = mysql_num_rows($result);
$i=0;
echo "<table>\n<tr>";
while($i < $num_rows)
{
if(($i%5)==0) { echo "<\tr><tr>"; }
echo "<td>";
echo "<a href='pics_view.php?id=$i'><img src='pics_view.php?id=$i' height='200px' width='200px' border='0' /></a>";
echo "</td>";
$i++;
}
echo "<\tr></table>\n";
?> |