如何使用幻灯片在php中显示数据库中的多个图像
我有从数据库上传的图像,但我希望这些图像以幻灯片形式显示 我的代码:如何使用幻灯片在php中显示数据库中的多个图像,php,mysql,bootstrap-4,Php,Mysql,Bootstrap 4,我有从数据库上传的图像,但我希望这些图像以幻灯片形式显示 我的代码: while ($row2=mysqli_fetch_array($res2)) { $image=$row2 ['img_name']; echo' <td> <img src="../photo/'.$image.'" width="360" height="150">
while ($row2=mysqli_fetch_array($res2))
{
$image=$row2 ['img_name'];
echo'
<td>
<img src="../photo/'.$image.'" width="360" height="150">
</td>';
}
while($row2=mysqli\u fetch\u数组($res2))
{
$image=$row2['img_name'];
回声'
';
}
while($row2=mysqli\u fetch\u数组($res2))
{
$image=$row2['img_name'];
回声'
';
}
<div id="carouselExampleSlidesOnly" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
while ($row2=mysqli_fetch_array($res2))
{
$image=$row2 ['img_name'];
echo'
<div class="carousel-item active">
<img src="../photo/'.$image.'" width="360" height="150">
</div> ';
}
</div>
</div>