no ok loguj i pokazuje zmieniłam to w tym user.class
ale dalej nie wyświetla danych jak mam taka tabele to nie pokazuje
tam gdzie jes $profile['login'] i inne to nic sie nie wyswietla a wczesniej jak było na id to było ok
<table class="tableq" cellpadding="10" cellspacing="0"> <td width="200" align="center" class="td1"><font color="#CCCCCC"><b>Nick:
</b></font></td> <td align="center" class="td3"><font color="#CCCCCC">'.$profile['login'].'
</font></td> <td width="200" align="center" class="td1"><font color="#CCCCCC"><b>Email:
</b></font></td> <td align="center" class="td3"><font color="#CCCCCC">'.$profile['email'].'
</font></td> <td width="200" align="center" class="td1"><font color="#CCCCCC"><b>Imie:
</b></font></td> <td align="center" class="td3"><font color="#CCCCCC">'.$profile['imie'].'
</font></td> <td width="200" align="center" class="td1"><font color="#CCCCCC"><b>Nazwisko:
</b></font></td> <td align="center" class="td3"><font color="#CCCCCC">'.$profile['nazwisko'].'
</font></td> <td width="200" align="center" class="td1"><font color="#CCCCCC"><b>Miasto:
</b></font></td> <td align="center" class="td3"><font color="#CCCCCC">'.$profile['miasto'].'
</font></td> <td width="200" align="center" class="td1"><font color="#CCCCCC"><b>Numer gg:
</b></font></td> <td align="center" class="td3"><font color="#CCCCCC">'.$profile['gg'].'
</font></td> <td width="200" align="center" class="td1"><font color="#CCCCCC"><b>Skype:
</b></font></td> <td align="center" class="td3" ><font color="#CCCCCC">'.$profile['skype'].'
</font></td> <td align="center"><a href="editprofile.php">edztuj
</a></td>
podaje ci
skrypt profile
<?php header('Content-type: text/html; charset=utf-8'); ?> <?php
/**
* Profil
* @author Sobak
* @package User System
*/
require 'header.php';
require 'include/config.php';
require_once 'user.class.php';
if (!user::isLogged()) {
echo '<center><font color="#ff0000"><p class="error">Przykro nam, ale ta strona jest dostepna tylko dla zalogowanych.</p></font></center>'; }
else {
$login = $_GET['login'];
*/
if ($userExist[0] == 0) {
die ('<center><font color="#ff0000"><p>Przykro nam, ale uzytkownik o podanym identyfikatorze nie istnieje.</p></font></center>'); }
$profile = user::getDataById ($login);
.div
{
width:500px;
height:30px;
margin:0 auto;
background-image:url(include/styles/default/images/fondotduser.png);
border-radius:10px 10px 0px 0px ;
}
.tableq
{
width:500px;
height: auto;
background-color:#CCDBF2;
margin:0 auto;
border-radius:0px 0px 10px 10px ;
box-shadow: 0 0 30px 5px #900 ;
background-image:url(include/styles/default/images/fondoprofil.png);
}
.td1
{
border-radius:0px 0px 0px 0px ;
border-bottom:1px #000000 groove;
border-right:2px #99CC00 ridge;
}
.td2
{
border-radius:0px 0px 0px 10px ;
border-right:2px #99CC00 ridge;
}
.td3
{
border-bottom:1px #000000 groove;
}
.boton
{
width:100px;
height:30px;
background-image:url(include/styles/default/images/boton.png);
border-radius:5px 5px 5px 5px;
}
</style>
<div class="div"><center><font color="#999999"><h3>Profil uzytkownika '.$profile['login'].'</h3></font></center></div>
<table class="tableq" cellpadding="10" cellspacing="0">
<tr></tr>
<tr>
<td width="200" align="center" class="td1"><font color="#CCCCCC"><b>Nick:</b></font></td>
<td align="center" class="td3"><font color="#CCCCCC">'.$profile['login'].'</font></td>
<tr>
<td width="200" align="center" class="td1"><font color="#CCCCCC"><b>Email:</b></font></td>
<td align="center" class="td3"><font color="#CCCCCC">'.$profile['email'].'</font></td>
</tr>
<tr>
<td width="200" align="center" class="td1"><font color="#CCCCCC"><b>Imie:</b></font></td>
<td align="center" class="td3"><font color="#CCCCCC">'.$profile['imie'].'</font></td>
</tr>
<tr>
<td width="200" align="center" class="td1"><font color="#CCCCCC"><b>Nazwisko:</b></font></td>
<td align="center" class="td3"><font color="#CCCCCC">'.$profile['nazwisko'].'</font></td>
</tr>
<tr>
<td width="200" align="center" class="td1"><font color="#CCCCCC"><b>Miasto:</b></font></td>
<td align="center" class="td3"><font color="#CCCCCC">'.$profile['miasto'].'</font></td>
</tr>
<tr>
<td width="200" align="center" class="td1"><font color="#CCCCCC"><b>Numer gg:</b></font></td>
<td align="center" class="td3"><font color="#CCCCCC">'.$profile['gg'].'</font></td>
</tr>
<tr>
<td width="200" align="center" class="td1"><font color="#CCCCCC"><b>Skype:</b></font></td>
<td align="center" class="td3" ><font color="#CCCCCC">'.$profile['skype'].'</font></td>
</tr>
<tr>
<td align="center"><a href="editprofile.php">edztuj</a></td>
</table>';
}
require 'footer.php';
?>
i skrypt user.clas
<?php
class user {
public function getData ($login, $pass) {
if ($login == '') $login = $_SESSION['login'];
if ($pass == '') $pass = $_SESSION['pass'];
return self::$user;
}
public function getDataById ($login) {
return $user;
}
public function isLogged () {
if (empty($_SESSION['login']) || empty($_SESSION['pass'])) { return false;
}
else {
return true;
}
}
public function passSalter ($pass) {
$pass = '$@@#$#@$'.$pass.'q2#$3$%##@';
}
}
ja juz niewiem gdzie jest ten błąd