javascript - Best practice for offline compatibilty of mobile web app using MySQL and PHP -


I am preparing a mobile web app that has a MySQL database back-end and some simple PHP Fetch query datasets and put them into an array for further processing with Javascript.

Right now, everything is built in a file, which is called index.php.

What would be the best practice, site offline compatible, need to store SQL data in local storage with HTMX in any way and I would probably have to separate PHP code into my file and in it AJX The query is included, okay?

Is there any code examples that?

You can see this is support for MySQL and is easy to simplify JSN data management. . You load the data as JSON, which saves BreezeJS in its EntityManager, and then you can serialize the data and save it to the local storage. After working through some examples it is very fast and very simple.

  var exportData = manager.exportEntities (); Window.localStorage.setItem ('myOfflineData', export data);  

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -