Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/03/2012, 09:50
valderramalex
 
Fecha de Ingreso: febrero-2012
Ubicación: bogota
Mensajes: 104
Antigüedad: 12 años, 2 meses
Puntos: 0
consulta de mysql en donde un campo es link de descarga de un archivo con php

Buenos Dias

he recurrido a este foro ya que en otras ocaciones me han ayudado mucho.

tengo un problema, en la consulta que realizo a la base de datos el ultimo campo que me debe traer es una ruta en el servidor donde se subio un archivo y debe venir en link para poder descargar este archivo y realizarle modificaciones y otra vez volverlo a subir, como puedo poner que esta linea echo "<td><font face = arial>$row[12]</td> \n"; quede como un link para descargar el archivo.

muchas gracias de antemano por su ayuda.
<?php

include 'Conexion.php';
$Consulta1="SELECT * FROM reg_autor_princial";
$res4=@mysql_query($Consulta1);

echo "<table border = '1'> \n";
echo "<tr> \n";
echo "<td><b><font face = arial><div align = center>Nombre</div></font></b></td> \n";
echo "<td><b><font face = arial><div align = center>Apellidos</div></font></b></td> \n";
echo "<td><b><font face = arial><div align = center>Identificacion</div></font></b></td> \n";
echo "<td><b><font face = arial><div align = center>Empresa Institucion</div></font></b></td> \n";
echo "<td><b><font face = arial><div align = center>Cargo</div></font></b></td> \n";
echo "<td><b><font face = arial><div align = center>Email</div></font></b></td> \n";
echo "<td><b><font face = arial><div align = center>Direccion</div></font></b></td> \n";
echo "<td><b><font face = arial><div align = center>Ciudad</div></font></b></td> \n";
echo "<td><b><font face = arial><div align = center>Departamento Estado Provincia</div></font></b></td> \n";
echo "<td><b><font face = arial><div align = center>Pais</div></font></b></td> \n";
echo "<td><b><font face = arial><div align = center>Telefono</div></font></b></td> \n";
echo "<td><b><font face = arial><div align = center>No Resumen</div></font></b></td> \n";
echo "<td><b><font face = arial><div align = center>Nombre Resumen</div></font></b></td> \n";
echo "</tr> \n";
while ($row = mysql_fetch_row($res4)){
echo "<tr> \n";
echo "<td><font face = arial>$row[0]</td> \n";
echo "<td><font face = arial>$row[1]</td> \n";
echo "<td><font face = arial>$row[2]</td> \n";
echo "<td><font face = arial>$row[3]</td> \n";
echo "<td><font face = arial>$row[4]</td> \n";
echo "<td><font face = arial>$row[5]</td> \n";
echo "<td><font face = arial>$row[6]</td> \n";
echo "<td><font face = arial>$row[7]</td> \n";
echo "<td><font face = arial>$row[8]</td> \n";
echo "<td><font face = arial>$row[9]</td> \n";
echo "<td><font face = arial>$row[10]</td>\n";
echo "<td><font face = arial>$row[11]</td>\n";
echo "<td><font face = arial>$row[12]</td> \n";
echo "</tr> \n";
}
echo "</table> \n";
?>