Tutaj jest kod. Wszystkie zmienne sa przekazywane.... Moze mi ktos powiedziec, dlaczego nie pokazuje mi tych obrazkow :?:
[php:1:14003e1d9a]<?
if (!isset($galeria))
{
echo("Aktualnie jest 6 galerii");
echo("<a href = "?www=galeria&galeria=1"><img src ="./strony/storyb/sm_X10_1_1"></a>");
}
else
{
echo("Galeria $galeria");
$the_array = Array();
$handle = opendir('./strony/storyb');
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
$the_array[] = $file;
}
}
closedir($handle);
$i=1;
$nr=0;
foreach ($the_array as $element) {
if ($element == 'sm_X$galeria$nr_$strona_$i.jpg')
{
echo("<a href ="./strony/stroryb/duze/X$galeria$nr_$strona_$i"><img src ="./strony/stroryb/$element"></a>");
$i++;
}
}
}
?> [/php:1:14003e1d9a]
Niestety nie wiedzialem jak to prosciej zrobic

Chyba, ze ktos ma inny skrypt, ktory by mogl ten zastapic

Chodzi o to, ze jest sobie katalog z galeria (strony/storyb) i sa w nim miniaturki (o nazwie sm_X$NUMER_GALERI0_$STRONA_$NUMER.jpg). Jak to zrobic, zeby to chodzilo :?:
pozdro
