Ver Mensaje Individual
  #11 (permalink)  
Antiguo 12/08/2003, 11:46
Avatar de WyLY
WyLY
 
Fecha de Ingreso: enero-2002
Ubicación: Cancun, México.
Mensajes: 506
Antigüedad: 22 años, 3 meses
Puntos: 6
Tienes razon, si hago el echo en imagen.php y lo quiero ver desde el archivo que manda el $row[id] osea verimagen.php no muestra nada entonces tengo que entrar desde imagen.php que es el que me saca el error que mecione antes.

ve:
ID:1, TIPO:image/pjpeg.<br />
<b>Warning</b>: imagesx(): supplied argument is not a valid Image resource in <b>/home/portal4/public_html/chusco/imagen.php</b> on line <b>10</b><br />
<br />
<b>Warning</b>: imagesy(): supplied argument is not a valid Image resource in <b>/home/portal4/public_html/chusco/imagen.php</b> on line <b>11</b><br />
<br />
<b>Warning</b>: Division by zero in <b>/home/portal4/public_html/chusco/imagen.php</b> on line <b>12</b><br />
<br />
<b>Warning</b>: imagecreatetruecolor(): Invalid image dimensions in <b>/home/portal4/public_html/chusco/imagen.php</b> on line <b>15</b><br />
<br />
<b>Warning</b>: imagecopyresampled(): supplied argument is not a valid Image resource in <b>/home/portal4/public_html/chusco/imagen.php</b> on line <b>16</b><br />
<br />
<b>Fatal error</b>: Call to undefined function: () in <b>/home/portal4/public_html/chusco/imagen.php</b> on line <b>18</b><br />

cambie algunas cosas:
Código PHP:
<?php
include("conexio.php");
$id=$_GET["id"];
$result =mysql_query("SELECT * FROM imageneschuscas WHERE id = '$id' AND tipo = '$tipo'");
$imagen mysql_result($result,0,"imagen");
Header ("Content-type: $tipo");
echo 
"ID:".$id.", SQL:".$sql.", TIPO:".$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,$new_h,imagesx($img),imagesy($img));$name $row["nombre"];
$separar explode('.',$name);
eval(
image.$separar[1]($dst_img,'',100));
?>
hay dios, ayuda.
__________________
I do techy stuff for a living and practice MMA with my dog... He always wins.