Ver Mensaje Individual
  #3 (permalink)  
Antiguo 10/08/2003, 22:11
Avatar de Manoloweb
Manoloweb
 
Fecha de Ingreso: enero-2002
Ubicación: Monterrey
Mensajes: 2.454
Antigüedad: 24 años, 8 meses
Puntos: 5
No se por que, pero creo que se trata de que tienes la variable $id como si fuera global...

trata añadiendo esta linea al inicio...

$id=$_GET["id"];

quedando así...
Código PHP:
$id=$_GET["id"];
$sql = "SELECT id,imagen,tipo,nombre FROM imageneschuscas WHERE id=$id";
$result=mysql_query($sql,$conexio);
$imagen = mysql_result($result,0,"imagen");
$row = mysql_fetch_array($result);
$tipo = $row["tipo"];
Header ("Content-type: $tipo");
$img = imagecreatefromstring($imagen);
$picsize = 123;
$new_w = imagesx($src_img);
$new_h = imagesy($src_img);
$aspect_ratio = $new_h / $new_w;
$new_w = $picsize;
$new_h = abs($new_w * $aspect_ratio);
$dst_img = ImageCreateTrueColor($new_w,$new_h);
imagecopyresampled($dst_img,$img,0,0,0,0,$new_w,$n
ew_h
,imagesx($img),imagesy($img));$name = $row["nombre"];
$separar = explode('.',$name);
image.$separar[1]($dst_img,'',100); 
Otra cosa que no comprendo es eso de:
image.$separar[1]($dst_img,'',100);

creo que debería ser así...

Código PHP:
eval(image.$separar[1]($dst_img,'',100)); 
__________________
Manoloweb