Ver Mensaje Individual
  #2 (permalink)  
Antiguo 21/02/2010, 11:11
Avatar de jackson666
jackson666
 
Fecha de Ingreso: noviembre-2009
Ubicación: Buenos Aires, Argentina
Mensajes: 1.971
Antigüedad: 14 años, 5 meses
Puntos: 65
Respuesta: Problema - Ver imagenes en Base de Datos

Cita:
Iniciado por Gulinaidas Ver Mensaje
Código PHP:
$result mysql_query("SELECT imagen FROM subir_imagenes WHERE id=1");
$result_array mysql_fetch_array($result);
header("Content-Type: image/jpeg");
echo 
$result_array[0]; 
Creo que el problema es claro... mysql_fetch_array() te devuelve un array asociativo, no un secuencial! Para eso deberias usar mysql_fetch_row()

Solucion: reemplaza mysql_fetch_array() por mysql_fetch_row()
__________________
HV Studio
Diseño y desarrollo web