Foros del Web » Programando para Internet » PHP »

Como Hacer Un Link De Un Campo De La Base De Datos Con Una Pag Php

Estas en el tema de Como Hacer Un Link De Un Campo De La Base De Datos Con Una Pag Php en el foro de PHP en Foros del Web. HOLA A TODOS QUIEN ME PUEDE EXPLICAR COMO HAGO UN LINK DE UN CAMPO DE LA BASE DE DATOS CON MI PAGINA PHP PARA QUE ...
  #1 (permalink)  
Antiguo 12/12/2007, 09:59
 
Fecha de Ingreso: septiembre-2007
Mensajes: 93
Antigüedad: 16 años, 7 meses
Puntos: 0
Pregunta Como Hacer Un Link De Un Campo De La Base De Datos Con Una Pag Php

HOLA A TODOS
QUIEN ME PUEDE EXPLICAR COMO HAGO UN LINK DE UN CAMPO DE LA BASE DE DATOS CON MI PAGINA PHP PARA QUE ESE LINK ME LLEVE AL CORREO DE DICHA PERSONA,ALGUIEN ME PUEDE ORIENTAR PLISSS Y SI TODAVIA ME FALTA ALGO, PORQUE LA VERDAD NO SE COMO

POR EJEMPLO:
EL CORREO SEA [email protected] QUE ASI ME DE CUANDO HAGO LA BUSQUEDA, LES MUESTRO EL CODIGO,

<div id="Layer2" style="position:absolute; width:811px; height:43px; z-index:3; left: 8px; top: 255px; background-color: #31619C; layer-background-color: #31619C; border: 1px none #000000;">
<table width="800" border="0" align="center" id="tabla">
<tr class="Estilo4">
<th scope="col"><div align="center" class="Estilo16">Nombre</div></th>
<th scope="col"><div align="center" class="Estilo17">Puesto</div></th>
<th scope="col"><div align="center" class="Estilo17">Direcci&oacute;n</div></th>
<th scope="col"><div align="center" class="Estilo17">Tel&eacute;fono</div></th>
<th scope="col"><div align="center" class="Estilo17">Correo electr&oacute;nico</div></th>
</tr>
<?PHP while($row_rs_x=mysql_fetch_assoc($rs_x)){ ?>
<tr>
<th scope="col"><div align="center" class="Estilo13 Estilo14">
<div align="justify"><?PHP echo $row_rs_x["nombre"]; ?> </div>
</div></th>
<th scope="col"><div align="center" class="Estilo18">
<div align="justify"><?PHP echo $row_rs_x["puesto"]; ?></div>
</div></th>
<th scope="col"><div align="center" class="Estilo18">
<div align="center"><?PHP echo $row_rs_x["ubicado"]; ?></div>
</div></th>
<th scope="col"><div align="center" class="Estilo18">
<div align="left"><?PHP echo $row_rs_x["telefono"]; ?></div>
</div></th>
<th scope="col"><div align="center" class="Estilo18">
<div align="left"><?PHP echo $row_rs_x["correo"]; ?></div>
</div></th>
</tr>
<tr>
<?PHP } ?>
</table>
<div id="Layer3" style="position:absolute; left:201px; top:242px; width:410px; height:23px; z-index:5;">
  #2 (permalink)  
Antiguo 12/12/2007, 10:02
Avatar de GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Re: Como Hacer Un Link De Un Campo De La Base De Datos Con Una Pag Php

Que tal ariesagv,

Para enviar el correo tienes que utilizar la etiqueta <a>, en el caso concreto en lugar de tener:
Código PHP:
<?PHP echo $row_rs_x["correo"]; ?>
Debes de tenerlo así:
Código PHP:
<a href="mailto:<?php echo $row_rs_x["correo"]; ?>"><?php echo $row_rs_x["correo"]; ?></a>
Saludos.
  #3 (permalink)  
Antiguo 12/12/2007, 11:35
 
Fecha de Ingreso: septiembre-2007
Mensajes: 93
Antigüedad: 16 años, 7 meses
Puntos: 0
Re: Como Hacer Un Link De Un Campo De La Base De Datos Con Una Pag Php

Cita:
Iniciado por GatorV Ver Mensaje
Que tal ariesagv,

Para enviar el correo tienes que utilizar la etiqueta <a>, en el caso concreto en lugar de tener:
Código PHP:
<?PHP echo $row_rs_x["correo"]; ?>
Debes de tenerlo así:
Código PHP:
<a href="mailto:<?php echo $row_rs_x["correo"]; ?>"><?php echo $row_rs_x["correo"]; ?></a>
Saludos.

muchas gracias,
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 16:34.