Jump to content

Jquery Slideshow from database?


MrOptimistic
 Share

Recommended Posts

Guys its my first time actually to use jquery and im fan of jquery slideshow plugin and i want to learn it if you dont mind is it possible to have a jquery slideshow that coming from a database? i mean the slideshow is not fix it can be change depending on the database? please help me thanks

Link to comment
Share on other sites

Yes, you can use PHP to get data from a database: http://www.w3schools.com/php/php_mysql_select.asp How your code will output the filenames depends on what the slideshow expects. If the slideshow has a list of images in a Javascript array, for example, you could use PHP to output that Javascript code so that the slideshow can read the filenames. If the slideshow looks for images in the HTML with a certain CSS class or something, you could write the filenames out like that also.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...