Script Upload Imagenes

From: Date: Mon, 17 May 2004 17:57:35 +0000
Subject: Script Upload Imagenes
Groups: php.general.es 
Request: Send a blank email to general-es+get-48610@lists.php.net to get a copy of this message
Hola a todos, A ver si me podéis con este script pq no funciona y no sé porque. Se trata de un código que manda a una bd texto y adjunta una foto con el id de la noticia. $temp=$id; $id=mysql_insert_id(); if ($id==0) { $id=$temp; } $guardatok=true; if ($imatge_name!="") { $existeix=file_exists("../imatges/NOT-".$id.".gif"); if (!$existeix) { $existeix=file_exists("../imatges/NOT-".$id.".jpg"); if ($existeix) { $imatgeguardada="../imatges/NOT-".$id.".jpg"; } } else { $imatgeguardada="../imatges/NOT-".$id.".gif"; } if ($existeix) { unlink($imatgeguardada); } } } La cuestión es que el servidor no da ningún error pero la imagen no se guarda. Saludos, Marc

« previous php.general.es (#48610) next »