![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 95 Pomógł: 0 Dołączył: 30.07.2003 Skąd: Gdynia Ostrzeżenie: (0%) ![]() ![]() |
Witam.
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 (IMG:http://forum.php.pl/style_emoticons/default/sad.gif) Chyba, ze ktos ma inny skrypt, ktory by mogl ten zastapic (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) 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 (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) |
|
|
![]() ![]() |
![]() |
Aktualny czas: 23.08.2025 - 07:48 |