Ver Mensaje Individual
  #7 (permalink)  
Antiguo 24/01/2011, 21:27
opzina
 
Fecha de Ingreso: marzo-2008
Mensajes: 1.020
Antigüedad: 16 años, 2 meses
Puntos: 21
No puedo hacer esta funcion.

Tengo que pasar esto a una funcion:
Código PHP:
Ver original
  1. $result = mysql_query("SELECT * FROM detalles WHERE id=$_GET[id]");
  2. while ($row = mysql_fetch_array($result)) {
  3.  
  4.  
  5. if (is_file($row['img_thumb'])) {
  6.         unlink($row['img_thumb']);
  7.     }

He intentado varias alternativas desde hacer variables globales y a pasar parámetros pero no he podido hacer que funcione.