Ver Mensaje Individual
  #7 (permalink)  
Antiguo 01/05/2012, 02:30
santperez
 
Fecha de Ingreso: marzo-2012
Ubicación: This is CANARIAASS
Mensajes: 21
Antigüedad: 12 años, 1 mes
Puntos: 3
Respuesta: Pagina de perfil para cada usuario

Ya pude hacerlo, muchas gracias por la ayuda :D
Código PHP:
Ver original
  1. <?php
  2. # CONECTAMOS CON LA BASE
  3. include('config.php');
  4. # EXTRAEMOS DATOS DE MYSQL
  5. $id = $_GET['id'];
  6. if(!isset($id))
  7. {
  8. echo 'No se ha seleccionado ninguna ID';
  9. }else{
  10. # EXTRAEMOS DATOS
  11. $user=mysql_query("SELECT usuario, email FROM users WHERE id='$id' ");
  12. if($user_ok=mysql_fetch_array($user) )
  13. {
  14. echo 'Nombre: <b>'.$user_ok["usuario"].'</b><br />';
  15. echo 'Mail: <b>'.$user_ok["email"].'</b><br />';
  16. }else{
  17. echo 'No existe el usuario que buscas';
  18. }
  19.  
  20. }
  21. ?>