Ver Mensaje Individual
  #4 (permalink)  
Antiguo 08/05/2009, 13:47
Avatar de huesos52
huesos52
Colaborador
 
Fecha de Ingreso: febrero-2009
Ubicación: Manizales - Colombia
Mensajes: 5.980
Antigüedad: 15 años, 3 meses
Puntos: 360
Respuesta: Delete registro imagen con id

Si esta consulta solo te arroja un solo registro puedes usar mysql_fetch_row para guardar la imagen sin necesidad de recorrerla en un fetch_array.

quedaría así:
Código PHP:
Ver original
  1. $resImagen = mysql_fetch_array(mysql_query("SELECT imagen FROM products_images WHERE id_image=".$_GET['id']));
  2. $imagen= mysql_fetch_row($resImagen);
  3. $imagen1 = $imagen[0];

Fuente:
http://www.php.net/mysql_fetch_row

Espero te sirva.
__________________
Without data, You are another person with an opinion.
W. Edwads Deming