Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/242.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用php-mysql显示图像幻灯片_Php_Jquery_Mysql - Fatal编程技术网

使用php-mysql显示图像幻灯片

使用php-mysql显示图像幻灯片,php,jquery,mysql,Php,Jquery,Mysql,我有一个名为hotel_booking的数据库,它包含名为imglinks的字段,该字段存储图像链接,我只能在站点中显示单个图像。我想用幻灯片展示各酒店的图片 <tr> <th>NAME OF HOTELS</th> <th>CATEGORY</th> <th>DESCRIPTION</th> <th>ADDRESS</th> <th>

我有一个名为hotel_booking的数据库,它包含名为imglinks的字段,该字段存储图像链接,我只能在站点中显示单个图像。我想用幻灯片展示各酒店的图片

 <tr>
    <th>NAME OF HOTELS</th>
    <th>CATEGORY</th>
     <th>DESCRIPTION</th>
    <th>ADDRESS</th>
    <th>GALLERY</th>
</tr>
<?php
    while($row=mysql_fetch_array($query))
    {
        $f1=$row['name'];
        $f2=$row['category'];
        $f3=$row['description'];
        $f4=$row['address'];

?>
<tr>
    <td><?php echo $f1 ?></td>
    <td><?php echo $f2 ?></td>
    <td><?php echo $f3 ?></td>
    <td><?php echo $f4 ?></td>
    <td><img src="<?php echo $row['imglinks'];?>" height="200" width="55"></td>

酒店名称
类别
描述
地址
画廊
“height=“200”width=“55”>

只需几行代码,就可以使用引导轻松实现这一点


浏览此链接,如果有任何问题,请告诉我:)

您尝试过jquery或bootstarp吗?是的,我已经完成了您所说的,但在我的案例中,链接需要动态,因为不同的酒店需要不同的图像集,而我只有一个链接,即$imglinks。