Ocena wątku:
  • 0 głosów - średnia: 0
  • 1
  • 2
  • 3
  • 4
  • 5
include
#2
(27-12-2010, 15:16)Filuper112 napisał(a): Witam mam blad w kodzie ale go nie rozumiem. W czym tu jest problem?
Kod PHP:
<?php if(!isset($_GET['url'])); 

 include(
'index.php'); {

 else if(
$_GET['url']=='index');} 

php?>
Gdzie właściwie masz błąd?
Co tym kodem chcesz zrobić?
Bo wydaje mi się że Ci się { poprzestawiały.
Kod PHP:
<?php if(!isset($_GET['url']))
{
    include(
'index.php');
 }
 else

    if(
$_GET['url']=='index');
};

php?>
PHP i MySQL Tworzenie stron WWW Vademecum profesjonalisty Wydanie 4
- sprzedam po rozsądnej cenie, stan jak nowa.

Carpe Di Em
Odpowiedz


Wiadomości w tym wątku
include - przez Filuper112 - 27-12-2010, 15:16
RE: include - przez KeeL - 27-12-2010, 15:37
RE: include - przez Filuper112 - 27-12-2010, 15:42
RE: include - przez KeeL - 27-12-2010, 15:50
RE: include - przez Filuper112 - 27-12-2010, 16:02
RE: include - przez Pedro84 - 27-12-2010, 21:36
RE: include - przez Filuper112 - 27-12-2010, 22:43
RE: include - przez KeeL - 27-12-2010, 23:03
RE: include - przez Filuper112 - 27-12-2010, 23:52
RE: include - przez www.skrypty.pro - 28-12-2010, 09:45
RE: include - przez Filuper112 - 28-12-2010, 13:52
RE: include - przez Pedro84 - 28-12-2010, 14:09
RE: include - przez Filuper112 - 28-12-2010, 14:57
RE: include - przez KeeL - 28-12-2010, 14:58
RE: include - przez Filuper112 - 28-12-2010, 15:08
RE: include - przez Pedro84 - 28-12-2010, 15:12
RE: include - przez KeeL - 28-12-2010, 15:18
RE: include - przez Filuper112 - 28-12-2010, 15:15
RE: include - przez Filuper112 - 28-12-2010, 19:43
RE: include - przez www.skrypty.pro - 29-12-2010, 09:25

Podobne wątki…
Wątek: Autor Odpowiedzi: Wyświetleń: Ostatni post
  Podstrony bez include, ajax czy get. pomocy mariuszmr1 5 6,646 17-10-2010, 02:35
Ostatni post: jarmiar
  Problem z include php. abcc 4 3,443 30-03-2010, 20:03
Ostatni post: KowR

Skocz do:


Użytkownicy przeglądający ten wątek: 2 gości
Sponsorzy i przyjaciele
SeoHost.pl