Ver Mensaje Individual
  #5 (permalink)  
Antiguo 09/08/2003, 16:27
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
Eemm
:
include("conexio.php");
$sql="SELECT * FROM imageneschuscas";
$result=mysql_query($sql,$conexio);
while($row = mysql_fetch_array($result)){
$tipo = $row["tipo"];
$ancho= "150";
$alto= "150";
$archivo = $row["nombre"];
$separar = explode('.',$imagen);
$pp='imagecreatefrom'.$separar[1];
$fuente = @$pp($ruta);
$imgAncho = imagesx ($fuente);
$imgAlto =imagesy($fuente);
$imagen = ImageCreate($ancho,$alto);
ImageCopyResized($imagen,$fuente,0,0,0,0,$ancho,$a lto,$imgAncho,$imgAlto);
Header("Content-type: $tipo");
image.$separar[1]($imagen);

sigue marcando error, lo que intento hacer es utilizar un script de thumbnails
http://www.maestrosdelweb.com/editorial/thumbphp

para poder mostrar cualquier tipo de imagen, por que he encontrado algunas codigos que solo seportan o que sean gif o jpg y las imagenes tienen qeu estar en el servidor y yo las tengo en una bd.
__________________
I do techy stuff for a living and practice MMA with my dog... He always wins.