según lo que entendi.
quieres una tabla con N filas y 2 columnas.
bueno si es asi se ve sencillo
Código PHP:
echo "<table>";
while ($row = mysql_fetch_array($resultado)) {
$id = $row["id"];
if($id <> $idAux and $idAux!=""){
echo "
<tr>
<TD width='283' height='158' ALIGN='CENTER' valign='top'><img src='ver.php?id=$id' width='182' height='154'></TD>
<TD width='283' height='158' ALIGN='CENTER' valign='top'><img src='ver.php?id=$idAux' width='182' height='154'></TD>
</tr>";
unset($idAux);
}
$idAux = $id;
}
echo "</table>";
suerte