Mam taki problem z moim kodem i biblioteką GD proszę o pomoc. A skrypt z którym mam problem ma tworzyć watermark'a z miniatury i ramki.
oto błędy:

A oto kod:
<?php ?> require_once '../library/config.php'; require_once '../library/functions.php'; if(isset($_POST['txtName'])) { $albumName = $_POST['txtName']; $albumDesc = $_POST['mtxDesc']; $imgName = $_FILES['fleImage']['name']; $tmpName = $_FILES['fleImage']['tmp_name']; // we need to rename the image name just to avoid // duplicate file names // first get the file extension $ext = strrchr($imgName, \".\"); // then create a new random name $newName = md5(rand() * time()) . $ext; // the album image will be saved here $imgPath = ALBUM_IMG_DIR . $newName; // resize all album image $result = createThumbnail($tmpName, $imgPath, THUMBNAIL_WIDTH); if (!$result) { echo \"Error uploading file\"; exit; } if (!get_magic_quotes_gpc()) { $albumName = addslashes($albumName); $albumDesc = addslashes($albumDesc); } // dodawanie ramki $ramka = imagecreatefrompng('ramka.png'); //szytywanie pliku $obrazki =imagecreatefromjpeg('$result'); imagejpeg($ramka, $obrazki); //zapisywanie imagedestroy($ramka); imagedestroy($obrazki); $query = \"INSERT INTO tbl_album (al_name, al_description, al_image, al_date) VALUES ('$albumName', '$albumDesc', '$newName', NOW())\"; mysql_query($query) or die('Error, add album failed : ' . mysql_error()); // the album is saved, go to the album list echo \"<script>window.location.href='index.php?page=list-album';\"; exit; } ?>