You need to store the images etc in a database, MySQL does not run on
Cordova as it's a true client/server database.
The obvious thing would be to use SQLite and replicate part of the
MySQL database with SQLite.
Since we have no idea of the database size, the number of entries, the
database schema, the volumetrics, its difficult to say much more.
However if you are thinking about database syncing, think carefully as
there's lots of pitfalls, eg. just one of them is what happens if you
lose network connectivity on a database sync, whilst in the middle of
a very large transaction.
SQlite whilst powerful and very, very good does not have some of the
features of MySQL but that probably won't matter.
You need to start reading about how to make async calls to your
database to get data, you need to look at what you need to store and
design your database schema accordingly.
Questions to consider:
1. What are you going to do about referential integrity?
2. What kind of images and how big are they?
3. Whats their encoding, if you use base64 encoding they could be large.
4. Can you extract your data in chunks from your MySQL database?
5. What happens when the network fails?
6. What happens when you run out of space?
7. Do you even need a relational database? Many, many times a
relational database is overkill.
8. Do you know JavaScript?
9. Do you know Angular?
Start reading and thinking as there's no substitute for understanding
what you are trying to do.
Rob
On 10/21/16, Redzwan Latif <
redzwa...@gmail.com> wrote:
>
>
> I've built an app that displays information from my hosting MySQL database.
>
>
> This app will also display image which is also stored in the hosting.
>
> The reason I'm using MySQL is because this whole project is originated from
>
> a website. Now we want to expand the project to mobile app.
>
> So now I've already completed building the app which connects to the
> hosting MySQL Database using *ajax*. This *ajax request data from a php
> file* which is also *stored in the hosting*.
>
> Now what I intend to do is, I want to display the data and images even when
>
> the app is offline.
>
> Can anyone guide me through this? Really appreciate your help. Thank you
>
> --
> -- You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to
phon...@googlegroups.com
> To unsubscribe from this group, send email to
>
phonegap+u...@googlegroups.com
> For more options, visit this group at
>
http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to
www.phonegap.com
> ---
> You received this message because you are subscribed to the Google Groups
> "phonegap" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
phonegap+u...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.
>