如何从jquery幻灯片中的数据库绑定数据 [英] how to bind data from data base in jquery slideshow

查看:81
本文介绍了如何从jquery幻灯片中的数据库绑定数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每个人都乐在其中


我有表名(新闻),并有4个字段(新闻标题,新闻正文,新闻图片路径)

问题是如何在我的页面上使用jquery绑定幻灯片放映的前5名

例如yahoo幻灯片放映

请给我示例的答案

请快速帮助我^ _ ^

hellow every one


i have table name (news) and have 4 fields(news_title,news_body,news_picture_path)

the question is how to bind top 5 recored in slideshow using jquery on my page

such as yahoo slide show

please i have answer with example

please help me quickly ^_^

推荐答案

选择前5条新闻标题,新闻正文,新闻图片路径来自新闻



这是将获取您想要的内容的sql语句.
有疑问请参考........

http://www.w3schools.com/sql/sql_top.asp [
SELECT TOP 5 news_title,news_body,news_picture_path FROM news



This is the sql statement which will fetch what you want................

have doubt refer this.................

http://www.w3schools.com/sql/sql_top.asp[^]

using asp.net, c# put a gridview write the dataset or datatable and make that gridview diplay none.

now your page having your five news record in table but display property is in none stage.

now using j-query get the value of five records from the table id and do your slideshow ......


这篇关于如何从jquery幻灯片中的数据库绑定数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆