Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> petra case, nie wyswietla zdjec
michu9010
post
Post #1





Grupa: Zarejestrowani
Postów: 104
Pomógł: 0
Dołączył: 2.11.2007
Skąd: Włocławek

Ostrzeżenie: (10%)
X----


witam
mam taki problem uzylem petli swich i case includowalem plik w ktorym byla grafika ale powyborze nie wyswietla tej grafiki i nie wiem co zrobic;/;/ sciana.gif
<?php
$strona = trim(strip_tags($_GET['strona']));
switch($strona)
{
case 'dyrektor':
include 'page/dyrektor.php';
break;
case 'kadra':
include 'page/kadra.php';
break;
case 'mail':
include 'page/mail.php';
break;
case 'aktualnosci':
include 'page/aktualnosci.php';
break;
case 'informacje':
include 'page/informacje.php';
break;
case 'rekrutacja';
include 'page/rekrutacja.php';
break;
case 'historia';
include 'page/historia.php';
break;
case 'ksiega';
include 'page/ksiega.php';
break;
case 'budynek';
include 'page/budynek.php';
break;
case 'sale';
include 'page/sale.php';
break;
case 'rok2005';
include 'page/rok2007.php';
break;
case 'rok2006';
include 'page/rok2006.php';
break;
case 'rok2007';
include 'page/rok2007.php';
break;
case 'kontakt';
include 'page/kontakt.php';
break;
default;
include 'main.php';
}

?>

a zobaczyc mozna to na http://michu.esnet.pl/slo/index.php?strona=kontakt
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 2)
Sadu2
post
Post #2





Grupa: Zarejestrowani
Postów: 229
Pomógł: 13
Dołączył: 31.05.2007

Ostrzeżenie: (10%)
X----


Brakuje pliku kontakt.php

Czemu 2 razy napisałeś nowy temat? Skasuj jeden, możesz przecież edytować.

Ten post edytował Sadu2 20.11.2007, 22:38:08
Go to the top of the page
+Quote Post
Darti
post
Post #3





Grupa: Zarejestrowani
Postów: 1 076
Pomógł: 62
Dołączył: 6.03.2005
Skąd: Wroc

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


nie znam struktury Twojej strony i katalogów, ale moge sie domyślać że powinieneś includować w ten sposób:
  1. <?php
  2. switch($strona)
  3. {
  4. case 'dyrektor':
  5. include 'include/page/dyrektor.php';
  6. break;
  7. // itd....
  8. ?>


Ten post edytował Darti 21.11.2007, 02:30:39


--------------------
The answer is out there, Neo. It's looking for you. And it will find you, if you want it to.
SERVER_SOFTWARE : Apache/2.2.4 (Win32) PHP/5.2.1
MySQL Client API version : 5.0.27
Go to the top of the page
+Quote Post

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 Aktualny czas: 20.08.2025 - 02:04