【发布时间】:2017-02-26 02:03:02
【问题描述】:
当我从数据库中读取图片时,我遇到了这个问题。
显示如下:
这是我的代码:
<?php
include 'Header.php';
include 'yzd.php';
?>
<div class="container">
<h1> All Project </h1>
<?php
$posts = mysqli_query($db_connect,"select * from Project order by id desc");
while($post = mysqli_fetch_array($posts)){
echo "
<article>
<a href='Project.php?id=$post[id]'>
<h1>$post[NameProject]</h1>
</a>
<p class='text-muted']>
<h3>$post[TypeProject]</h3>
</p>
<h4>$post[Description]</h4>
$post[Pic];
<p>-----------------------------------------------------------------------------</p>
</article>";
}
?>
[![在此处输入图片描述][2]][2]
【问题讨论】:
-
如果您要发布代码图像,不要指望太多帮助
-
您好!好像你的问题写得不好。就目前而言,它只会吸引反对票,而没有答案。
-
不要将实际图像存储在数据库中,存储它的位置。