Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Wyświetla tylko jedna strone
Sikor89
post
Post #1





Grupa: Zarejestrowani
Postów: 9
Pomógł: 0
Dołączył: 15.03.2009

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


Witam,
na wstepie napisze, ze jestem bardzo slaby w php, mam nadzieje, ze uda mi sie tutaj odnalezc pomoc;) Do rzeczy:
Klikajac w jakikolwiek link na stronie wyswietla sie tylko jedna strona, adres zmiania sie jednak strona glowna nie. Probklem taki jak tu: http://www.dictum.netlook.pl/tpe/ Gdy klikamy z lewej strony mendu link "statut" to statut sie nie wyswietla. Oczywiscie wszystko jest na serwerze:)
Pozdrawiam
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Sikor89
post
Post #2





Grupa: Zarejestrowani
Postów: 9
Pomógł: 0
Dołączył: 15.03.2009

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


Nadal nie wyswietla glownej strony
  1. <html>
  2. <head>
  3. <title>Towarzystwo Przyjaciół Elfidy</title>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
  5. <link rel="stylesheet" href="style.css" type="text/css">
  6. </head>
  7.  
  8. <body bgcolor="#008080" text="#FFF8DC" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" link="#FFF8DC" vlink="#FFF8DC" alink="#FFF8DC">
  9. <table width="780" border="0" cellspacing="0" cellpadding="0" class="body" align="center">
  10.  <tr>
  11.    <td width="850" height="85" valign="top">
  12. <? include "includes/top.inc"; ?>
  13.  
  14.  
  15. </td>
  16.  </tr>
  17.  <tr>
  18.    <td valign="top" width="850">
  19.      <table width="760" border="0" cellspacing="0" cellpadding="0">
  20.        <tr valign="top">
  21.          <td width="165" background="images/menu.png">
  22.  
  23. <? include "includes/menu.inc"; ?>
  24. </td>
  25.          <td>
  26.            <table width="600" border="0" cellspacing="0" cellpadding="0" class="top">
  27.              <tr>
  28.                <td height="18" background="images/newst2.png" valign="top">&nbsp;</td>
  29.              </tr>
  30.              <tr>
  31.                <td background="images/newstl.png" valign="top">
  32.                  <table width="600" border="0" cellspacing="0" cellpadding="0" align="center" class="body">
  33.                    <tr>
  34.                      <td><center>Witam Serdecznie na stronach Towarzystwa Przyjaciół Elfidy!!<br>Jako stowarzyszenie stawiamy sobie za cel przydewszystkim dobro naszej ukochanej prowincji, jej rozwój i rozkwit.<br>Zachęcamy do wspierania naszych wysiłków.</center>
  35.                        
  36.                      </td>
  37.                    </tr>
  38.                  </table>
  39.                </td>
  40.              </tr>
  41.              <tr>
  42.                <td background="images/news_back.png" valign="bottom"><img src="images/newsb.png" width="600" height="25"></td>
  43.              </tr>
  44.            </table>
  45.            <br>
  46.            <table width="431" border="0" cellspacing="0" cellpadding="0" class="top">
  47.              <tr>
  48. <?
  49. $page1 = isset($_GET['page']) ? $_GET['page'] : "newst" ;
  50. if(file_exists("images/$page1.png"))
  51. echo"<td height=\"31\" background=\"images/$page1.png\" valign=\"top\">";
  52. else
  53. echo"<td height=\"31\" background=\"images/blank.png\" valign=\"top\">";
  54. ?>
  55.              </tr>
  56.              <tr>
  57.                <td background="images/newstl.png" valign="top">
  58.                  <table width="550" border="0" cellspacing="0" cellpadding="0" align="center" class="body">
  59.                    <tr>
  60.                      <td><? if(!isset($page1)) {
  61. $page1="index";
  62. }
  63. if(file_exists("includes/$page1.inc")) {
  64. include "includes/$page1.inc";
  65. } else {
  66. echo "Strona niedostępna!";
  67. }
  68. ?>  
  69.                      </td>
  70.                    </tr>
  71.                  </table>
  72.                </td>
  73.              </tr>
  74.              <tr>
  75.                <td background="images/news_back.png" valign="bottom"><img src="images/newsb.png" width="600" height="25"></td>
  76.              </tr>
  77.            </table>
  78.            <p>&nbsp;</p>
  79.          </td>
  80.  
  81.  
  82.  
  83. </font></div>
  84.          </td>
  85.        </tr>
  86.      </table>
  87.    </td>
  88.  </tr>
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95. </table>
  96. </body>
  97. </html>
Go to the top of the page
+Quote Post

Posty w temacie
- Sikor89   [PHP]Wyświetla tylko jedna strone   15.03.2009, 12:39:03
- - wookieb   A kod to nie łaska podać?   15.03.2009, 12:44:49
- - Sikor89   CODE ...   15.03.2009, 12:48:41
- - blooregard   CytatW związki ze śmiercią założyciela i przewodni...   15.03.2009, 12:53:27
- - Foxx   blooregard, myślę że jednak jest tam jakiś problem...   15.03.2009, 12:55:09
- - Sikor89   Nie, nie wyjasnia, strony powinny dzialac:)   15.03.2009, 12:57:29
- - blooregard   Po wpisaniu tego w pasku adresu: Cytathttp://www.d...   15.03.2009, 12:58:50
- - Foxx   Sikor89, napisałem Ci na PW już - umieść kod w zna...   15.03.2009, 12:59:42
- - Sikor89   CODE Towarzystwo Przyjaciół Elfidy ...   15.03.2009, 13:50:53
- - Foxx   Sikor89 - znaczniki PHP a nie CODE   15.03.2009, 14:05:38
- - Sikor89   [PHP] pobierz, plaintext <html>  <head...   15.03.2009, 14:21:09
- - Foxx   W tym fragmencie: [PHP] pobierz, plaintext <?ph...   15.03.2009, 14:25:58
- - Sikor89   Prawie wszystko jest ok tylko nie wyswietla glowne...   15.03.2009, 14:35:18
- - Foxx   Pokaż jak teraz wygląda Twój kod.   15.03.2009, 14:44:18
- - Sikor89   [PHP] pobierz, plaintext <html><head>...   15.03.2009, 14:46:41
- - Foxx   Tu także musisz zmienić na $page1: ...   15.03.2009, 14:49:05
- - Spawnm   [PHP] pobierz, plaintext <td><? if(!i...   15.03.2009, 14:51:08
- - Sikor89   Nadal nie wyswietla glownej strony [PHP] pobierz, ...   15.03.2009, 15:06:02
- - Spawnm   [PHP] pobierz, plaintext <?php$page1 = isset...   15.03.2009, 15:07:18
- - Foxx   Ok, to zamień to: [PHP] pobierz, plaintext <?ph...   15.03.2009, 15:08:09
- - Sikor89   Wszystko ok, wielkie dzieki! pomogl   15.03.2009, 15:16:03


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: 4.10.2025 - 09:20