1
我想显示从MySQL数据库的图像URL到我的网站。它被保存为我的数据库中的URL。图片来自MYSQL数据库(PHP,MySql)
http://www.upload.ee/image/5697422/prague-1168302_1920.jpg
这是应显示为$里达[“pilt”]
<?php
$paring = 'SELECT * FROM postitus ORDER BY id';
$valjund = $yhendus->query($paring);
while($rida = mysqli_fetch_assoc($valjund))
?>
<img class="img-thumbnail" alt="city" src="<?php echo $rida['pilt']; ?>" style="width:250px;height:200px" />
删除while循环只定义你的变量$ rida –
难以检查查询是否正确执行? – Xorifelse