Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Include
MrDziobak
post
Post #1





Grupa: Zarejestrowani
Postów: 24
Pomógł: 0
Dołączył: 28.08.2012

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


Chodzi o to że mam taki o kod:<?php
  1. session_start();
  2. include 'db.php'; // połączenie się z bazą danych
  3. if (isset($_SESSION['login'])) { // dostęp dla zalogowanego użytkownika?>
  4. <meta http-equiv="content-type" content="text/html; charset=iso-8859-2" />
  5. <link rel=stylesheet href="style.css" TYPE="text/css" media="screen"/>
  6. <style type="text/css">
  7. body {
  8. background:url('images/') right;
  9. color: #000000;
  10. font-family: 'verdana';
  11. }
  12. </style>
  13. <div style='font-size: 80%;' align='left'>Witaj <b><?echo "$login";?></b>!&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Twoje punkty: <?include 'stan.php?user=$login';?></div>
  14. <hr color='purple'/>
  15. <center>
  16. <p>Jesteś na ukrytej części strony<br>
  17. <a href='wyloguj.php'>Wyloguj się</a></p>
  18. <?php } else {
  19. header('Location: index.php '); // niezalogowany użytkownik zostaje przekierowany na stronę główną
  20. }
  21. ?>

Lecz przy napisie twoje punty wywala mi błędy

Warning: include($url) [function.include]: failed to open stream: No such file or directory in C:\Program Files (x86)\WebServ\httpd\demo\page\indeks.php on line 15
Warning: include() [function.include]: Failed opening '$url' for inclusion (include_path='.;C:\php5\pear') in C:\Program Files (x86)\WebServ\httpd\demo\page\indeks.php on line 15

I za Chiny nie wiem co jest nie tak, bardzo proszę o pomoc (IMG:style_emoticons/default/nerdsmiley.png)
Go to the top of the page
+Quote Post

Posty w temacie


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: 27.09.2025 - 15:30