我正在尝试使用 Php Thumbnail 调整图像大小并显示为缩略图。我不断收到错误消息,“无法显示图像,因为它包含错误”。有谁知道出了什么问题?
<?php
require_once('phpthumb2/ThumbLib.inc.php');
require "db_connection.php";
$iii = 1;
$imagequery = mysql_query("SELECT source FROM photos ORDER BY id DESC LIMIT 16");
$imageSrc = mysql_result($imagequery,$iii,'source');
$thumb = PhpThumbFactory::create($imageSrc);
$thumb->resize(100,100);
$thumb->show();
?>