Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> wyswietlanie podstrony
djtomaszq
post
Post #1





Grupa: Zarejestrowani
Postów: 192
Pomógł: 0
Dołączył: 5.07.2015

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


Jak można rozwiązać problem jeśli chce na stronie index.php w miejscu div wstawić przez include inną stronę.

dodam, że kod index.ph do tego mam taki:

  1. CASE "strona":
  2. INCLUDE 'pokaz.php?id=3';
  3. BREAK;


i w pliku profil.php chce po kliknieciu na link kodzie nizej zeby wyswietlila sie strona pokaz.php indexu np. nr 3:

  1. <a href="index.php?parent=strona">



.. i wtedy spotykam błąd

  1. Warning: include(pokaz.php?id=3) [function.include]: failed to open stream: No error in C:\Program Files\WebServ\httpd-users\w\index.php on line 45
  2.  
  3. Warning: include() [function.include]: Failed opening 'pokaz.php?id=3' for inclusion (include_path='.;C:\php5\pear') in C:\Program Files\WebServ\httpd-users\w\index.php on line 45
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: 22.08.2025 - 22:33