Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Problem ze skryptem, petla sie petli...
f4ngorn
post
Post #1





Grupa: Zarejestrowani
Postów: 43
Pomógł: 0
Dołączył: 7.08.2005

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


Witam, pisze prosciutki skrypt galerii oparty o pliki (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) Mam drobny problem... z moich wyliczen to powinno smigac ino furczy, niestety tak nie jest :/ Skrypt petli sie do czasu zatrzymania przez serwer, i nie wyswietla nic. Oto kod:
  1. <?php
  2.  
  3. $kat = "sygnaturki";
  4. $file = readdir($handle);
  5.  
  6. if ($handle = opendir($kat))
  7. {
  8. for ($id = 1; $id < $id + 4; $id++){
  9. if ($file != "." && $file != "..")
  10. {
  11. echo "<a href='index.php?strona=strony/przegladarka&id=". $id ."'><img src='$kat/$file' /></a><br><br>";
  12. }
  13. }
  14. closedir($handle);
  15. }
  16.  
  17. ?>


Pomocy!
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: 23.08.2025 - 04:48