Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [HTML][PHP]Include zmienna z parametrem, bład nie działa
set4812
post
Post #1





Grupa: Zarejestrowani
Postów: 150
Pomógł: 3
Dołączył: 13.04.2010

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


  1. <div id="TRESC"><?php if(!isset($_GET['id'])) include ('news.php'); else {
  2. $s=$_GET['id'].'.php';
  3. if(isset($_GET['p'])) {$s=$s.'?p='.$_GET['p'];}
  4. include $s;}?></div>


Wiec jak includuje byle jaka strone bez parametrow to normalnie działa a gdy dopisze po php parametry bład (IMG:style_emoticons/default/sad.gif) dostaje takie cos od parsera prosze o pomoc
Cytat
Warning: include(news.php?p=5) [function.include]: failed to open stream: No error in C:\xampp\htdocs\index.php on line 22

po wpisaniu http://localhost/index.php?id=news&p=5 a jak wpisze http://localhost/index.php?id=news normalnie działa

Ten post edytował set4812 27.06.2010, 01:32:25
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 - 01:07