Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> strony typu index.php?page=
vtuner
post
Post #1





Grupa: Zarejestrowani
Postów: 220
Pomógł: 10
Dołączył: 23.08.2005
Skąd: Łódź

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


mam cos takiego:
  1. <?php
  2. if($chop == $_GET['chop'])
  3. {
  4. if ( $chop == "AMV")
  5. {
  6. include 'amv.php';
  7. }
  8. else if ( $chop == "CPWerks")
  9. {
  10. include 'cpwerks.php';
  11. }
  12. }
  13. else if($page == $_GET['page'])
  14. {
  15. if ( $page == "")
  16. {
  17. include 'start.php';
  18. }
  19. else if( $page == "dupa")
  20. {
  21. include'dupa.php';
  22. }
  23. }
  24.  
  25. ?>


i nie chce mi się wyswietlic start.php przy samym poczatku strony a powinno. Co jest zle?
TZN
Mam tabele w ktorej ma to się wyświetlać. I przy samym stacie strony powinno do tabeli zaincludowac start.php i pokazac jego zawartość a nie pokazuje. Reszta jest wporządku tylko to jedno jest zle.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
vtuner
post
Post #2





Grupa: Zarejestrowani
Postów: 220
Pomógł: 10
Dołączył: 23.08.2005
Skąd: Łódź

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


jakos tego nie kapuje mam tak:
  1. <?php
  2. $chop = $_GET['chop'];
  3. if(!empty($_GET['chop']))
  4. {
  5. if ( $chop == "AMV")
  6. {
  7. include 'amv.php';
  8. }
  9. else if ( $chop == "CPWerks")
  10. {
  11. include 'cpwerks.php';
  12. }
  13. else if ( $chop == "Droo")
  14. {
  15. include 'droo.php';
  16. }
  17. else if ( $chop == "FroZ")
  18. {
  19. include 'froz.php';
  20. }
  21. else if ( $chop == "Glacius")
  22. {
  23. include 'glacius.php';
  24. }
  25. else if ( $chop == "GSX4G63")
  26. {
  27. include 'gsx4g63.php';
  28. }
  29. else if ( $chop == "Neo")
  30. {
  31. include 'neo.php';
  32. }
  33. else if ( $chop == "NOM15")
  34. {
  35. include 'nom15.php';
  36. }
  37. else if ( $chop == "Piechur")
  38. {
  39. include 'piechur.php';
  40. }
  41. else if ( $chop == "REW")
  42. {
  43. include 'rew.php';
  44. }
  45. else if ( $chop == "RuiG")
  46. {
  47. include 'ruig.php';
  48. }
  49. else if ( $chop == "Tony-Riley")
  50. {
  51. include 'tonyriley.php';
  52. }
  53. else if ( $chop == "visual")
  54. {
  55. include 'visual.php';
  56. }
  57. else if ( $chop == "Zammo")
  58. {
  59. include 'zammo.php';
  60. }
  61. else if ( $chop == "ZVT")
  62. {
  63. include 'zvt.php';
  64. }
  65. }
  66. else if(!empty($_GET['page']))
  67. {
  68. $page = $_GET['page'];
  69. if ( $page == "tutoriale")
  70. {
  71. include 'tut.php';
  72. }
  73. else if ( $page == "linki")
  74. {
  75. include 'linki.php';
  76. }
  77. else if ( $page == "kontakt")
  78. {
  79. include 'kontakt.php';
  80. }
  81. else
  82. {
  83. echo '<center><FONT FACE="Verdana" SIZE="2" COLOR="Black">Witamy na CarChopDesign!<br></font></center>';
  84. }
  85. ?>

i jak zrobic zeby dzialalo poprawnie??
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: 26.12.2025 - 11:48