I have a page where a user can see information about a other user. Sometimes have a user a picture on that page. The sizes of the pictures are verry diverent.
I have found a code where the size is changed in. But I don't get the picture on the page. The url to the picture is stored in a mysqldatabase.
Can someone help me?
This is the code:
<img src=
<?php
if ($i[pic])
{
if (!$width)
{
$thumbX = 100;
}
else
{
$thumbX = $width;
}
$src = ImageCreateFromJPEG($i[pic]);
$thumbY = ($thumbX/ImageSX($src)) * ImageSY($src);
$thumb = ImageCreate($thumbX+0,$thumbY+0);
ImageCopyResized($thumb,$src,0,0,0,0,$thumbX,$thumbY,ImageSX($src),ImageSY($src));
ImageJPEG ($thumb);
}
else {print "foto niet gevonden";}
?>>
and a link where you can see where it is for:
user white picture: http://members.lycos.nl/cyberzone77/cgi-bin/phpmeet/view.php?id=30