Well.. i used the code the site, changed what was necessary and i'm getting this output:
每脴每脿JFIF每镁>CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), default quality 每脹C $.' ",#(7),01444'9=82<.342每脹C 2!!...
This goes for about another 100 lines, lol. Heres what i'm using:
$getlocation = mysql_result(mysql_query("SELECT image_location FROM Galleries WHERE image_id='$imageid'",$connection),0);
header('content-type: image/jpeg');
$watermark = imagecreatefrompng('Watermark.png');
$watermark_width = imagesx($watermark);
$watermark_height = imagesy($watermark);
$image = imagecreatetruecolor($watermark_width, $watermark_height);
$image = imagecreatefromjpeg('Photos/'.$getlocation.'');
$size = getimagesize('Photos/'.$getlocation.'');
$dest_x = $size[0] - $watermark_width - 5;
$dest_y = $size[1] - $watermark_height - 5;
imagecopymerge($image, $watermark, $dest_x, $dest_y, 0, 0, $watermark_width, $watermark_height, 100);
imagejpeg($image);
imagedestroy($image);
imagedestroy($watermark);
Anyone know why it outputing this gibberish please?? Cheers, BIOSTALL