Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]PHP katalogi w funkcji include POMOC
Winnetou
post
Post #1





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 20.04.2014

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


Witam serdecznie, proszę o pomoc i diagnozę ,czy rzecz którą chcę zrobić jest możliwa do osiągnięcia.
Oto moja funkcja include za pomocą której ładuję podstrony.
  1.  
  2. <?php
  3.  
  4. if(isset($_GET['go']))
  5. {
  6. switch ($_GET['go'])
  7. {
  8. case 1:
  9. include("Glowna.html");
  10. case 2:
  11. include("Nowosci.php");
  12. break;
  13. case 3:
  14. include("Lokalizacja.html");
  15. break;
  16. case 4:
  17. include("Dojazd.html");
  18. break;
  19. case 5:
  20. include("W Poblizu.html");
  21. break;
  22. case 6:
  23. include("ECO Friendly Pokoje.html");
  24. break;
  25. case 7:
  26. include("Pokoje.html");
  27. break;
  28. case 8:
  29. include("Sala Konferencyjna.html");
  30. break;
  31. case 9:
  32. include("Bufet.html");
  33. break;
  34. case 10:
  35. include("Basen i Spa.html");
  36. break;
  37. case 11:
  38. include("tabs.html");
  39. break;
  40. case 12:
  41. include("galeria/index.html");
  42. break;
  43. case 13:
  44. include("curtain.html");
  45. break;
  46. case 14:
  47. include("Dane Kontaktowe.html");
  48. break;
  49. case 15:
  50. include("Napisz Do Nas.html");
  51. break;
  52. case 16:
  53. include("GPS i Mapy.html");
  54. break;
  55. case 17:
  56. include("Dla Gosci Indywidualnych.html");
  57. break;
  58. case 18:
  59. include("Dla Grup.html");
  60. break;
  61. case 19:
  62. include("Oferty Czasowe.html");
  63. break;
  64. case 20:
  65. include("Rezerwacja.html");
  66. break;
  67. }
  68. }
  69. else
  70. {
  71. include('Glowna.html'); // default
  72. }
  73.  
  74. ?>


Cały kod ładnie działa,ale tak jak w case 12 gdy chcę załadować plik z katalogu, to nie działa. Prosze o pomoc i napisanie rozwiązania o ile takie istnieje.Pozdrawiam Rafał
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: 3.10.2025 - 13:11