sæt alle billeder ind i en tabel, og sæt en <tr> for hver tredje billede
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?
require("config.php");
$connect = mysql_connect($host, $user, $pass);
mysql_select_db($db);
$query = mysql_query("SELECT * FROM billeder");
[b]echo "<table>";
$nummer=0;[/b]
while ($billeder = mysql_fetch_array($query)) {
[b]if($nummer%3==0)echo "<tr>";
echo "<td>";
$nummer++;[/b]
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a href="showimg.php?id=<?=$billeder['id'];?>"><img src="upload/large/<?=$billeder['billede'];?>" border="0" width="75" height="75"></a>
</td>
</tr>
<tr>
<td><? echo "$billeder['tekst']"?></td>
</tr>
</table>
<? } ?>
<p> </p>
</body>
</html>