Ver Mensaje Individual
  #14 (permalink)  
Antiguo 11/07/2007, 16:14
Avatar de McBlink
McBlink
 
Fecha de Ingreso: noviembre-2006
Ubicación: $ARG->LaPampa()
Mensajes: 1.694
Antigüedad: 17 años, 5 meses
Puntos: 23
Re: Como saco un dato de sub.dominio.com/perfil.php?id=20 como TOMO ESE 20?

Bueno, aca de perfil.php

Código PHP:
<? 
include('config.php'); 
?>

<?
$user
=$_GET['id'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin t&iacute;tulo</title>
<style type="text/css">
<!--
body {
    background-image:url(fondo.bmp)
    }
.Estilo2 {    font-family: Geneva, Arial, Helvetica, sans-serif;
    font-size: 12px;
}

a.estilo8:link { font-size: 12px; font-family: Verdana, Arial, Helvetica, sans-serif; color:#FFFFFF; font-weight:bold;}
a.estilo8:visited { font-size: 12px; font-family: Verdana, Arial, Helvetica, sans-serif; color:#FFFFFF; font-weight:bold;}
a.estilo8:hover { font-size: 12px; font-family: Verdana, Arial, Helvetica, sans-serif; color:#FFFFFF; font-weight:bold;}
a.estilo8:active { font-size: 12px; font-family: Verdana, Arial, Helvetica, sans-serif; color:#FFFFFF;}

a.vota:link { font-size: 13px; font-family: tahoma; color:#FF0000; font-weight:bold;}
a.vota:visited{ font-size: 13px; font-family: tahoma; color:#FF0000; font-weight:bold;}
a.vota:hover { font-size: 13px; font-family: tahoma; color:#FF0000; font-weight:bold;}
a.vota:active { font-size: 13px; font-family: tahoma; color:#FF0000; font-weight:bold;}

.Estilo4 {font-size: 10px}
.Estilo8 {font-size: 12px; font-weight: bold; font-family: tahoma; color: #FFFFFF; }
.Estilo9 {
    color: #FFFFFF;
    font-weight: bold;
    font-family: tahoma;
}
.Estilo10 {
    color: #003366;
    font-weight: bold;
}
.Estilo11 {
    font-size: 11px;
    font-weight: bold;
    font-family: tahoma;
}
.stats {
    color:#003366;
    font-size: 12px;
    font-weight: bold;
    font-family: tahoma;
}
.Estilo12 {
    font-family: verdana;
    font-size: 11px;
}


-->
</style></head>

<body>
<style><!--
a{text-decoration:none
}--></style>
<div style="position:absolute;left:98px;top:0px;width:800px;height:780px;z-index:0" align="left">
  <table width="100%" height="777" border="0" cellpadding="0" cellspacing="0" style="background:#000000">
    <tr>
      <td bgcolor="#CCCCCC" align="left" valign="top" width="775" height="777"><p>&nbsp;</p>
          <p><img src="head..JPG" width="800"  style="position:absolute; left:0px; top: 0px;"></p>
        <p></p>
        <p>
        <img src="a.bmp" style="position:absolute; left:0px; top: 112px; width: 82px; height: 18px;">
        <img src="aa.bmp" style="position:absolute; left:718px; top: 112px; width: 82px; height: 18px;">&nbsp;</p>
        
        <!-----------------  TABLA DE LOGIN DE USUARIOS--------------- -->
        <p align="center"><a class="Estilo4"></a></p>
        <table border="0" style="position:absolute; left:48px; top: 110px;">
          <tr>
            <td width="700px" height="18px" background="barra.bmp"><div align="center" style="font-size:12px; color:#FFFFFF; font-family:tahoma;"><a href="./reg.php" class="estilo8" style="position:absolute; left:79px;"><blink>Registrate Gratis!</blink></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
              <? include('usuarios.php'); ?> Usuarios Registrados  |
            <? include('activos.php'); ?></div></td>
          </tr>
        </table>
        <p>
        </p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <table width="613" height="229" border="0" style="position:absolute; left:262px; top: 186px; width: 276px; height: 122px;">
          <tr>
            <td height="30" bgcolor="#003366"><div align="center"><span class="Estilo9">Perfil de <? include('usuario.php'); ?></span></div></td>
          </tr>
          <tr>
            <td height="20" bgcolor="#999999"><div align="center">
              <? include('imagen.php'); ?>
            </div></td>
          </tr>
          <tr>
            <td height="20" bgcolor="#999999">
              <div align="left"><span class="Estilo11">&nbsp;&nbsp;Nombre:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                <span class="stats"><? include('personaje.php'); ?></span>
            </div></td>
          </tr>
          <tr>
            <td height="20" bgcolor="#999999"><span class="Estilo11">&nbsp;&nbsp;Nivel:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
           <span class="stats"> <? include('level.php'); ?></span></td>
          </tr>
          <tr>
            <td height="20" bgcolor="#999999"><span class="Estilo11">&nbsp;&nbsp;Clicks:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
           <span class="stats"> <? include('showclick.php'); ?></span></td>
          </tr>
          <tr>
            <td height="20" bgcolor="#999999"><span class="Estilo11">&nbsp;&nbsp;Fecha Registro:&nbsp;&nbsp;</span>
            <span class="stats"><? include('fecha.php'); ?></span></td>
          </tr>
           <tr>
            <td height="20" bgcolor="#999999">              <span class="Estilo11">&nbsp;&nbsp;Carateristica:</span><span class="Estilo10"><span class="stats">
              <? include('rollo.php'); ?>
              </span>
              </span></td>
          </tr>
           <tr>
             <td height="20" bgcolor="#999999"><div align="center" class="vota"><a href="./click.php?id=<? echo $user?>" class="vota">Votalo</a></div></td>
           </tr>
        </table>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p align="center" class="Estilo2">&nbsp;</p>
        <p align="center" class="Estilo2">&nbsp;</p>
        <p align="center" class="Estilo2">&nbsp;</p>
        <a {text-decoration:none;}>
      </td>
    </tr>
  </table>
</div>
</body>
como veran, lo unico que tiene de php, son las primeras lineas y los includes del medio del codigo..
casi al final del codigo esta el link de VOTA que es el que tendria que llevar el id X

saludos y gracias de antemano!
MC
__________________
Recuerda usar el highlight para mostrar código
mauricioblint.com