Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Problem z Include
-TeeDee-
post
Post #1





Goście







Witam, poniżej jest skrypt, który wywołuje zawartosc pliku news na stronie głownej i zakladce news oraz Introduction w zakladce Introduction. Nie wiem co jest nie tak niby wszystko dziala sprawnie ale na stronie głownej pod news'ami pokazuje mi bład: Notice: Undefined index: id in /home/a6483513/public_html/strona/index.php on line 208

208 linia to
  1. if($_GET['id']=="Introduction"){

skrypt:
  1. <?php
  2. if(empty($_GET['id']) or $_GET['id']=="news"){
  3. include("news/news.php");
  4. }
  5. if($_GET['id']=="Introduction"){
  6. include("Introduction/Introduction.html");
  7. }
  8.  
  9. ?>


Prosze o 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: 23.08.2025 - 20:30