I'm newbie on mobile developer trying to develop android application with HTML5 , jquerymobile , php and mysql and then build android application in PHONEGAP cloud service.
But i don't understand how to coding connect online database not in local is it possible?. So i don't know i'm going on the right way or not.
Anyone help me:)?
You can use the MySQL JDBC drivers. Specify access details into the app and use normal code to query the database.
The other option is to use web services to access, autheticate and excute control. You can write the webservice in PHP where it takes query from POST data and submits it to the database with the result written in JSON. The scirpt that you write will send the query where upon reply the JSON will be parsed and displayed.
Hi , midynamics
Thanks for the answer and i think coding with JSON is my choice.
This topic is now closed. New replies are no longer allowed.