我第一次做 PHP 并对此进行研究,但并不快乐。基本上,我正在尝试从我的 PHPMyAdmin 数据库中获取图像并将其上传到我创建的网页。除图像外,所有标题和文本都按预期显示。
我从数据库中获取图像的代码
<?php
include 'config.php';
include 'opendb.php';
$getdestinationdetails = mysql_query("SELECT *
FROM tbldestinations
WHERE destinationid = $_GET[destinationid]");
while($row = mysql_fetch_array($getdestinationdetails))
{
echo "<h1>Visit " . $row['destinationname'] . "</h1>".
"<imgsrc = 'images" . $row['destinationimage'] . "' />" .
"<br />
<br />" .
$row['destionationdesc'] .
"<br />
<br />
Our holidays include:
<ul>
<li>Luxury coach travel from Shipley Town Centre</li>
<li>Bed and Breakfast at a top hotel</li>
<li>Free tea and coffee on board your coach</li>
<li>The services of an experienced courier</li>
<li>Free complimentary glass of champagne upon arrival at your hotel</li>
</ul>
<center><h2>Don't delay, book today!</h2></center>";
}
include 'closedb.php';
?>
我尝试了所有的实验,但都是徒劳的。任何提示或建议将不胜感激。提前致谢