Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> funkcja switch
TheRain
post 22.09.2004, 09:11:22
Post #1





Grupa: Zarejestrowani
Postów: 2
Pomógł: 0
Dołączył: 22.09.2004

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


Witam

Mam maly problem z ta funkcja o co chodzi juz pisze...

jest sobie jakis plik.php a w nim
<?
include "./menu.php";
?>

cat menu.php

<?
switch ($go)
{

case "dzial":

if($cid==home && $in==1 && $ne==0 && file_exists("$strinclocation/home.inc"))
{
include("$strinclocation/home.php");
}

else if($cid==home && $in==1 && $ne==2 && file_exists("$strinclocation/hm2.php"))
{
include("$strinclocation/hm2.php");
}

break;

default:
{
include("$strinclocation/hm1.php");
}
break;
}
?>

i teraz jesli wejde na plik.php mam info o bledach w pliku menu.php

Notice: Use of undefined constant home - assumed 'home' in /www-strona/menu.php on line 8
[php]
Go to the top of the page
+Quote Post

Posty w temacie
- TheRain   funkcja switch   22.09.2004, 09:11:22
- - silent   [PHP] pobierz, plaintext <?include &#092;...   22.09.2004, 09:27:00
- - TheRain   Ok dziala dzieki   22.09.2004, 09:59:56


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 24.07.2025 - 20:08