Parašė NoNy· 2008 Geg. 23 19:05:54
#1
Tai vat susidūriau su tokia problėma, nežinau kaip išspresti. Rodo klaidą:
Fatal error: Call to undefined function createthumbnail() in /usr/home/www1/ftp/lafestuks/meeting.php on line 1612
O kode toje eilutėje nieko nerandu.
Kodas:
move_uploaded_file($_FILES['image']['tmp_name'], "images/meeting/".$i.".jpg");
chmod("images/meeting/".$i.".jpg", 0644);
createthumbnail("images/meeting/".$i.".jpg", "images/meeting/".$i."t.jpg", $preview_photo_size_w, $preview_photo_size_h);
$_POST['name']=stripinput(trim(eregi_replace(" +", " ", substr($_POST['name'], 0, $input_max))));
$result=dbarray(dbquery("SELECT `order` FROM ".$db_prefix."meeting_photos WHERE `user_id`='".$userdata['user_id']."' ORDER BY `order` DESC LIMIT 10;"));
$order=$result['order']+1;
dbquery("INSERT INTO ".$db_prefix."meeting_photos(`id`, `user_id`, `name`, `order`) VALUES('".$i."', '".$userdata['user_id']."', '".$_POST['name']."', ".$order.");");
dbquery("UPDATE ".$db_prefix."meeting SET `status`='0', `is_photo`='1' WHERE `id`='".$userdata['user_id']."';");
Redagavo Enzo· 2008 Geg. 25 16:05:04