PRZYKŁAD
<?php $_SESSION['id'] = '$id'; ?>
inny plik.
<?php ?>
Czy można to zrobić w ten sposób?
<?php $nazwa = "name"; $nick = $_POST['nick']; $pass = $_POST['pass']; $inc = "includes/profil.php"; { $_SESSION['zalogowany'] = true; $_SESSION['id'] = $id = $wiersz[id]; $_SESSION['bron'] = $bron = $wiersz[bron]; $_SESSION['ubranie'] = $ubranie = $wiersz[ubranie]; $_SESSION['atk'] = $atk = $wiersz[atk]; $_SESSION['avatar'] = $avatar = $wiersz[avatar]; $_SESSION['mafia'] = $mafia = $wiersz[mafia]; $_SESSION['quest'] = $quest = $wiersz[quest]; $_SESSION['money'] = $money = $wiersz[money]; } } else ?>
<?php $_SESSION['avatar'] = 'avatar.gif'; ?>