Ver Mensaje Individual
  #4 (permalink)  
Antiguo 04/03/2009, 19:11
lobo2009
 
Fecha de Ingreso: marzo-2009
Mensajes: 7
Antigüedad: 15 años, 2 meses
Puntos: 0
No se muestra imagenes en pagina php.

Hola amigos:

Espero ser mas concreto:

Nesecito mostrar imagenes de una tabla de mysql en una pagina php.
Estoy trabajando con plantillas php (las he retirado pero me sale el mismo error).

El error que se muestra es el siguiente:

Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\Proyectos\scripvitrinas.php:6) in C:\AppServ\www\Proyectos\scripvitrinas.php on line 57

El codigo que tengo es:

<?php
$conec = mysql_connect('localhost','root', '123456789') or die ('Error en la conexion');
mysql_select_db('dbfrivisac');

/*Codigo de verificaciond eregistros existentes*/
$sql = "select * from vitrinas";
$res = mysql_query($sql);

while($fila = mysql_fetch_array($res)){

echo '<table border="1" cellspacing="1">';

echo '<tr>';
echo '<td rowspan="5">';
header("Content-Type: image/jpeg");
$imgx = $filax['imagen'];
echo $imgx;
echo '</td>';


echo '<td width="200">'.$fila['codigo'].'</td>';
echo '</tr>';
echo '<tr>';
echo '<td width="200">'.$fila['descripcion'].'</td>';
echo '</tr>';
echo '<tr>';
echo '<td width="200">'.$fila['categoria'].'</td>';
echo '</tr>';
echo '<tr>';
echo '<td width="200">'.$fila['precio'].'</td>';
echo '</tr>';
echo '<tr>';
echo '<td width= 200>'.$fila['detalles'].'</td>';
echo '</tr>';

echo '</table>';

echo '<table cellspacing = 1 border = 1>';
echo '<tr>';
echo '<td>Ampliar</td>';
echo '</tr>';
echo '</table>';
}

?>


Espero haber redactado mejor mi consulta, gracias amigos.