Cita:
Iniciado por walterdevel
Podes guardar solamente $nombrefoto en la base de datos, luegos cuando vas a imprimirlo le agregas el path: <?php echo '/fotos/'.$row['foto'];?>
LO ACABO DE PROBAR y en ves de listarme la imagen me sale una cadena de letras de la url
http://taklab.com/pruebas/subirarchivos/subir_archivo_imagen_db/imagen.php
Código PHP:
Ver original<?php
// listamos imagen
?>
<table cellpadding="0" cellspacing="0" width="646" height="203">
<!-- MSTableType="layout" -->
<tr>
<td valign="top"><? echo $row['titulo']; ?></br><? echo $row['descripcion']; ?><?php echo '/fotos/'.$row['foto'];?></td>
<td height="173"> </td>
</tr>
<tr>
<td width="606"> </td>
<td height="30" width="40"> </td>
</tr>
</table>
<?
}
//cerrar BD
?>
estoy haciendo algo mal?