Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP] Nie wyświetlają sie obrazki
Arsanael
post
Post #1





Grupa: Zarejestrowani
Postów: 65
Pomógł: 0
Dołączył: 4.06.2009

Ostrzeżenie: (0%)
-----


Mam kod:

  1. <?php
  2. if ($_GET['galeria'] == 'pokaz')
  3. {
  4.    print '<center><b>Twoja Galeria Zdjęć</b></center><br>';
  5.    $data_sesion = $_SESSION["user"];
  6.    $od = openDir('miniaturki/'.$data_sesion.'/');
  7.    if(!$od) return false;
  8.    $ilosc = -2;
  9.    while(readDir($od) !== false){
  10.    $ilosc++;
  11.    }
  12.    closeDir($od);
  13.    echo "<center><b><font size='2'>( W swojej galerii masz aktualnie <font color='red'>$ilosc</font> zdjęć     )</font></b></center><br><br>";
  14.    $t=1 ;
  15.        if ($handle = opendir('miniaturki/'.$data_sesion.'/'))
  16.            {
  17.        if ($handle2 = opendir('profil/'.$data_sesion.'/'))
  18.            {
  19.                        while (false !== ($file = readdir($handle)))
  20.                            {
  21.                        while (false !== ($file2 = readdir($handle2)))
  22.                            {
  23.                                    if ($file != "." && $file != ".." && $file != "index.html")
  24.                                        {
  25.                                        echo "<a href='profil/$data_sesion/$file2/'><img                                         src='miniaturki/$data_sesion/$file'                                                           width=150 height=100></a>";
  26.                                        if ($t % 3 == 0) echo '<br /><br />';
  27.                                                $t++;
  28.                    }
  29.                }
  30.  
  31.            }
  32.    }
  33.   }
  34.            closedir($handle);
  35.        closedir($handle2);
  36. }
  37. ?>




Nie zwraca zadnego błędu ale obrazki sie nie pokazują, nie wiem co jest grane prosze pomoc.
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 14.10.2025 - 17:20