javascript - how to make slider that get image from mysql last 5 images -


I'm new to php and I do not have any information about jQuery. I have created a slider using "slider identifier", but I want to call images from my database.
What should I do, please give some tips on how to get the database from the database to the slider?

  & lt ;? Php $ link = mysql_connect ("localhost", "root", "") or die ("can not connect .."); Mysql_select_db ("shop", $ link) or die ("can not connect to database ..."); $ Sql ​​= "Choose from book order * b_id desc range 5"; $ Race = mysql_query ($ SQL); ? & Gt; & Lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Meta http-equiv = "content-type" content = "text / html; charset = utf-8" /> & Lt; Title & gt; Max slider & lt; / Title & gt; & Lt ;! - & lt; / Head & gt; Put in your webpage before - & gt; & Lt; Script src = "sliderengine / jquery.js" & gt; & Lt; / Script & gt; & Lt; Script src = "sliderengine / amazingslider.js" & gt; & Lt; / Script & gt; & Lt; Script src = "sliderengine / initslider-1.js" & gt; & Lt; / Script & gt; & Lt ;! - Head section HTML code end - & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Div style = "margin: 30px auto; max-width: 340px;" & Gt; & Lt ;! - Insert your webpage where you want to display the slider - & gt; & Lt; Div id = "amazingslider-1" style = "display: block; position: relative; margin: 16px auto 32px;" & Gt; & Lt; Ul class = "Amazing Slider-Slides" style = "display: none;" & Gt; & Lt; Li & gt; & Lt; Img src = "& lt ;? php echo $ line [9] ;? gt;" Alt = "22" /> & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; Ul class = "Amazonese-thumbnail" style = "display: none;" & Gt; & Lt; Li & gt; & Lt; Img src = "& lt ;? Php echo $ line [9] ;? & gt;" / & Gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; Div class = "amazingslider-engine" style = "display: none;" & Gt; & Lt; A href = "http://amazingslider.com" & gt; JavaScript Slideshow & lt; / A & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt ;! - End of body section HTML code - & gt; & Lt; / Div & gt; & Lt; / Html & gt;  

help me thx my solution

  & Lt; Li & gt; have been found. & Lt ;? Php while ($ row = mysql_fetch_row ($ res)) {? & Gt; & Lt; Li & gt; & Lt; A href = "& lt ;? php echo $ line [9] ;? & gt;" Class = "html5lightbox" data-width = "500" data-height = "600" & gt; & Lt; Img src = "& lt ;? php echo $ line [9] ;? gt;" / & Gt;  

`


Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -