Pisze sobie mini 'cmsa' jesli tak mozna powiedziec , takie najprostsze opcje narazie... , i napotkałem sie na dziwnym problem , nie chcialo mi sie go naprawiac , ale teraz jest uciazliwy.
Dam ssa bo trudno to wytlumaczyc:

Myslalem , ze jest konflikt miedzy zmiennymi , ale sprawdzalem i tak nie jest.Wrzuce skrypt logowania , na wszelki wypadek , ale napewno jest dobry.
{ if($_SESSION['UserStatus'] == 1) { $sBufor .= "<div style='text-decoration:none;font-family:Georgia;color:red;'>Witaj administratorze"; $sBufor .= ''.$_SESSION['zalogowany_user_login'].' zostałeś/aś pomyślnie zalogowany/a.<br/>'; $sBufor .= '<br/>'; $sBufor .= '<a href="index.php?id=dodajnewsa">Dodaj Newsa</a>'; $sBufor .= '<br/>'; $sBufor .= '<a href="index.php?id=edycja">Edytuj Newsa</a>'; $sBufor .= '<br/>'; $sBufor .= '<a href="index.php?id=usun">Usun Newsa</a>'; $sBufor .= '<br/>'; $sBufor .= '<a href="index.php?id=zmianapw">Zmien Haslo</a>'; $sBufor .= '<br/>'; $sBufor .= '<a href="index.php?id=zmiana">Zmien Nazwe Strony</a>'; $sBufor .= '<br/>'; $sBufor .= '<a href="index.php?id=dodajadmina">Dodaj Admina</a>'; $sBufor .= '<br/>'; $sBufor .= '<a href="index.php?id=wylog">Wyloguj?</a></div>'; } elseif ($user_status == 0) { $sBufor .= "Witaj<b> ".$_SESSION['zalogowany_user_login']."</b> Zostaleś pomyślnie zalogowany."; $sBufor .= '<br/>'; $sBufor .= '<div style="width:110px;text-decoration:none;">'; $sBufor .= '<a href="index.php?id=zamowieniee">Złóż zamówienie!</a>'; $sBufor .= '<br/>'; $sBufor .= '<a href="index.php?id=zmianapw">Zmien Haslo</a>'; $sBufor .= '<br/>'; $sBufor .= '<a href="index.php?id=wylog">Wyloguj?</a></div>'; } } { { $username = $_POST['username']; } { } $query = "SELECT status FROM `rejestracja` WHERE `uzytkownik` = '".$username."' AND `haslo` = '".$password."'"; { } else { $_SESSION['zalogowany_user_login'] = $username; $_SESSION['twojehaslo_to'] = $password; $_SESSION['UserId'] = $result[0]['id']; $_SESSION['UserStatus'] = $result[0]['status']; } } else { $sBufor = '<form action="" method="post"> <div class="lewo2">Username:</div><div class="prawo2"><input type="text" name="username"></div> <div class="lewo3">Password:</div><div class="prawo3"><input type="password" name="password"></div> <div id="dol"><button class="button1"><input type="submit">Zaloguj</button></div> </form>'; } ?> <!-- WYSWIETLA ILOSC ZAREJESTROWANYCH UZYKTOWKOW --> <?php include("online.php"); ?>