Ocena wątku:
  • 0 głosów - średnia: 0
  • 1
  • 2
  • 3
  • 4
  • 5
include
#9
Ja myslalem zeby zrobic tak:
Co wy na to?
HTML - index.php
Kod:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Filip Kraft</title>
<link rel="stylesheet" href="styles.css" type="text/css" />
</head>

<body>
         <div id="wrapper">
                 <div id="sitename">
                   <h1><a href="index.php">Filip Kraft.pl</a></h1>
                </div>
                 <div id="header">
                         <h2>Witaj na mojej stronie!</h2>
                         <div class="tagline"><p>Strona WWW. Witaj na Stronie WWW. Moja Strona WWW. </p></div>
                </div>
                <div id="body" class="clear">
                <div id="sidebar" class="column-left">
                <ul>
                <li>
                 <h4>Menu</h4>
                 <ul class="blocklist">
                  <li class="selected-item"><a href="index.php">Strona Glówna</a></li>
                  <li><a href="index.php?url=art.html">Artykuly</a></li>
                  <li><a href="index.php?url=galeria.html">Galeria</a></li>
                  <li><a href="index.php?url=linki.html">Linki</a></li>
                  <li><a href="index.php?url=kontakt.html">Kontakt</a></li>
               </ul>
               </div>

               <div id="content" class="column-right">
                <P><H1>Strona Glowna!</H1></P>
                <?php include("lista.php") ?>
                
                </div>
                
                <div id="footer" class="clear">
                         <p class="left">&copy; 2010 </p>
                        
                </div>
        </div>
</body>
</html>

Lista.php
Kod PHP:
<?php if(!isset($_GET['url'])); 

 include(
'index.php'); {

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

php?>

Jak zrobie tak jak tu to mi wywala blad "Parse error: syntax error, unexpected T_ELSE in /home/accounts_f/filuper112/public_html/lista.php on line 5"
Jeśli pomogłem... Dodaj punkt reputacji Smile http://www.webmastertalk.pl/podstrony-include-t-5667.html
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,639 17-10-2010, 02:35
Ostatni post: jarmiar
  Problem z include php. abcc 4 3,437 30-03-2010, 20:03
Ostatni post: KowR

Skocz do:


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