Ver Mensaje Individual
  #4 (permalink)  
Antiguo 30/10/2008, 09:35
lvinuezav
 
Fecha de Ingreso: diciembre-2007
Mensajes: 218
Antigüedad: 16 años, 5 meses
Puntos: 1
Respuesta: Obtener el tipo de archivo de un campo BLOB que almacena imagen gif,jpg,pn

Saludos,

Las imagenes q almaceno en la BBDD son solo de formato gif o jpg pero al mostrar utilizando este codigo m sale error:

<?php
while ($erow = mysql_fetch_array($rev))
{
?>
<div id="<?php $i++?>" class="news">
<b><span style="color:#ffffff; float:right;"><?php echo $erow["comi_detalle"]?></span></b><br><span style="float:right; margin-top:7px;"><b>Horario: <?php echo $erow["time"]?></b></span><br><br><span style="float:left; width:220px; height:100px;"><?php

header("Content-Type: image/gif");
echo $erow["imagen"];
?>

</span><span style="float:right; width:240px; height:100px;"><b><?php echo $erow["events"]?></b><br><? echo $erow["cuerpo"];?></b></span><span style="float:left; width:220px; height:100px; margin-top:4px;"><?php echo "<b>"."Desde "."</b>".date("j \-m \-Y", strtotime($erow["dates"])) ."<b>". " Hasta "."</b>".date("j \-m\-Y", strtotime($erow["fecha_fin"]))?> </div>
<?php }?>
</div> </td>
</tr>
<?php }?>