Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
hi i currently work on a mobile application android using html and javascript in phone gap build so i link my app to my wordpress site and i want to retrieve some pictures from my mysql and display it as a slide show in my app . any help please?

What I have tried:

i select the data from my mysql and it was correctly selected so what i must do right now to create a dynamic slide show
Posted
Updated 3-May-16 13:12pm
Comments
Sergey Alexandrovich Kryukov 3-May-16 14:33pm    
Help with what? Sorry, this is not a question.
—SA

1 solution

As always you need to break up your task in smaller pieces.

So what do you need to know in order to create a dynamic slideshow for a mobile device?
Well, this is one possible approach:

1. Look for ways to make the page mobile friendly.
"Mobile first" is a buzzword these days, so you can look for that.
BootStrap is one example, see Bootstrap 3 Tutorial[^]

2. Learn how to make a static slideshow.
There are many different ways using HTML5 + JavaScript and/or CSS.
Just Google for "How to create a slideshow in HTML5".

3. Figure out how to get the batch of images you want to present.
Well, seem to have that covered with your MySQL queries.

4. Now you can look into how to change the pictures dynamically.
* You can, for example, create the whole or part pf the page using PHP.
This approach is good if you want to show different number of pictures for different users.
* You can choose to change the attributes of existing elements using jQuery.
See jQuery Set Content and Attributes[^].
This works well if you always want to show for example 10 pictures.

This is only way way to skin the cat. There are plenty more ways you can choose.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900