SQLite persisting data via php to MySQL server iOS -


sorry in advance sounding novice i'm new app development , hope can me!

i'm trying create ios app store data locally when offline (i.e. email address) , once connectivity internet available persist data across server.

first created sqlite database done using db browser tool, , part working way should. app uses core data persist sqlite db.

next created php file check internet connection select sqlite db , it's data insert data mysql db.

this got stuck. right in thinking data saved in sqlite db when running on device saved in device's document directory?

if true how gain access via php file persisted on mysql server?

am missing something? correct way of persisting data across sqlite db on device mysql server?

many in advance help.

it sounds want store data in cookie (the email address), , post server when online. not need offline client db data small email address.

you ajax (asynchronous javascript), posting awaiting php file based upon javascript file.

php communicates mysql lamp/wamp (linux/windows-apache-mysql-php) type server (or ios version: iamp?). ajax, $_get or $_post php file, , write data (after sanitizing) mysql database either mysqli or pdo, preferably prepared statement.

to data server, have php file loaded (again ajax) query mysql simple select statement.

i suggesting ajax here because not require user interaction post; set timer continually check internet connection, , post when come online. have similar timer sync server database. keep in mind, timer based ajax put constant load on server, may not scalable.


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -