
16/10/2010, 09:04
|
 | | | Fecha de Ingreso: abril-2009 Ubicación: Buenos Aires, Argentina
Mensajes: 189
Antigüedad: 15 años, 10 meses Puntos: 3 | |
Respuesta: Un poco de ayuda con una session A mi me parece que esta mal este codigo:
<?php
$registros=mysql_query("select id,username,email,country,fullname from users where username='$_GET[id]'") or
die("Problemas en el select:".mysql_error());
echo '<table border="1">';
session_start();
include 'global.php';
if (isset($_SESSION['s_username']))
{
echo '<tr><td>Nombre de usuario</td><td>Nombre completo</td><td>Pais</td><td>E-mail</td></tr>';
while ($reg=mysql_fetch_array($registros))
{
echo '<tr>';
echo '<td><b>'.$reg['username'].'</b></td>';
echo '<td><b>'.$reg['fullname'].'</b></td>';
echo '<td><b>'.$reg['country'].'</b></td>';
echo '<td><b>'.$reg['email'].'</b></td>';
echo '</tr>';
}
echo '</table>';
}else{
echo 'Tienes que iniciar sesion para poder ver tu perfil!..';
}
?> |