
<?
 if(isset($_GET["id_foto"])){
        $id_foto = $_GET["id_foto"];
        $fotoThumb = $_GET["foto"];
        unlink("../fotos/$fotoThumb");
        unlink("../fotos/thumb/$fotoThumb");
		$sql  = " delete from foto where id_foto=$id_foto ";		
		$resultado = $bd->executa_sql($sql);        				    
		 if (!$resultado)
 			$msg = "<h3>Foto não excluída...</h3>";
		 else								
			$msg = "<h3>Foto excluída com sucesso...</h3>";  
 }		    
?>