php在div中获取数据库,php – 从数据库中获取数据后如何在div中滑动

我试图找到如何从数据库中提取数据后滑动数据块.

我尝试了很多,但没有得到结果.请帮助我找出解决方案

这是我的代码

$servername="localhost";

$username="root";

$password="";

$db="lalcoresidency";

$conn=mysqli_connect($servername,$username,$password,$db);

if(!$conn){

die("connection failed:".mysqli_connect_error());

}

?>

$query="select * from testimonial order by r_id desc";

$result = mysqli_query($conn, $query);

while($row=mysqli_fetch_array($result)){

?>

}

?>

$(document).ready(function() {

$('.flexslider').carousel({

interval: 3200

});

});

它已经花了我的时间,但我没有得到解决方案.这个代码只能逐行显示数据

my code output

"Loving Staff Welcoming and helpful... Kind and welcome the food is great. Breakfast included."

"Total value for money."

"Excellent facilities with good location and very co-operative and efficient staff."

"Accommodation worth the money paid for... Staff were very helpful and in-house car hire rates were so reasonable."

"An excellent stay... Loved the stay and definitely look forward to keep going back for our next stay."

它一个接一个地显示数据.但我想显示第一行数据,然后滑动后需要显示第二行.然后滑动第三行.

请帮我找到解决方案

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值