0
I am developing an application for a company where makes meal orders, this application is in PHP, as I am new in the area wanted to know if it is possible to have the employee base saved on the tablet, so when typing the employee’s registration he load the name without having to make a request on the server, in order to consume less mobile data. I don’t know have a list or array that would have that information.
No. The
PHP
cannot work with files or database on the client side. Maybe the best solution for your case is to usejs
.– Valdeir Psr
You can create a JSON in JS and search the name by registration.
– Sam
Just an addendum: depending on the size of your database, it might not even be worth it. Just to give you an idea, an api that returns name, email, id, avatar, city, state, country, situation (status), creation and modification dates consumes about 800 bytes, with GZIP this value can reach 400 bytes.
– Valdeir Psr