.. i chciałem, żeby profil użytkownika pokazywał się na stronie index.php w wyznaczonym miejscu. Tak jak na tym kodzie:
Kod: Zaznacz cały
CASE "profile":
INCLUDE 'profile.php?id='.$user_data['user_id'].'';
BREAK;
Kod: Zaznacz cały
echo '<p>Witaj <b>'.$user_data['user_name'].'</b>!</p>
<p>Jesteś w strefie tylko dla zalogowanych.</p>
<p>[<a href="index.php?parent=profile">Wyświetl swój profil</a>]
[<a href="editprofile.php">Edytuj profil</a>] [<a href="userlist.php">Lista użytkowników</a>]
[<a href="logout.php">Wyloguj się</a>]</p>';
Kod: Zaznacz cały
Warning: include(profile.php?id=) [function.include]: failed to open stream: No error in C:\Program Files\WebServ\httpd-users\w\index.php on line 43
Warning: include() [function.include]: Failed opening 'profile.php?id=' for inclusion (include_path='.;C:\php5\pear') in C:\Program Files\WebServ\httpd-users\w\index.php on line 43
Jak można to inaczej przypisać żeby zadziałało?