Kod
<html>
<head>
</head>
<body bgcolor="darkgreen">
<center>
<br><br><br><br><br>
<table border=1 width=300 bgcolor="black">
<tr>
<td>
<center>
<h3><font color="yellow">Galeria 1 </font></h3>
</center>
</td>
</tr>
</table>
<table border=0 width=300 height=400 bgcolor="#cbcbcb">
<tr>
<td width=300 height=400>
<?
if($id>=0 & $id<=11)
echo"<img src=obrazy/".($id).".jpg width=297 height=397>";
?>
</td>
</tr>
</table>
<table border=1 width=300>
<tr>
<td>
<center>
<?
if ($id<1)
echo"<img src=arrow40.gif>";
else
echo"<a href=galeria.php?id=".($id-1)."><img src=arrow40.gif border=0></a>"?>
<a href="galeria.php?id=0"><img src="reset.gif" border=0></a>
<?
if ($id>10)
echo"<img src=arrow41.gif>";
else
echo"<a href=galeria.php?id=".($id+1)."><img src=arrow41.gif border=0 ></a>"?>
</center>
</td>
</tr>
</table>
</body>
</html>
<head>
</head>
<body bgcolor="darkgreen">
<center>
<br><br><br><br><br>
<table border=1 width=300 bgcolor="black">
<tr>
<td>
<center>
<h3><font color="yellow">Galeria 1 </font></h3>
</center>
</td>
</tr>
</table>
<table border=0 width=300 height=400 bgcolor="#cbcbcb">
<tr>
<td width=300 height=400>
<?
if($id>=0 & $id<=11)
echo"<img src=obrazy/".($id).".jpg width=297 height=397>";
?>
</td>
</tr>
</table>
<table border=1 width=300>
<tr>
<td>
<center>
<?
if ($id<1)
echo"<img src=arrow40.gif>";
else
echo"<a href=galeria.php?id=".($id-1)."><img src=arrow40.gif border=0></a>"?>
<a href="galeria.php?id=0"><img src="reset.gif" border=0></a>
<?
if ($id>10)
echo"<img src=arrow41.gif>";
else
echo"<a href=galeria.php?id=".($id+1)."><img src=arrow41.gif border=0 ></a>"?>
</center>
</td>
</tr>
</table>
</body>
</html>
i nie wiem jak zrobic aby galeria konczyla sie nie wtedy gdy wpisze zdjecie o ostatniej cyfrze w katalogu lecz aby sam wykrywal jakie zdjecie jest ostatnie (ma najwieksza cyfre w katalogu) i zeby po nim nie bylo nic wyswietlane