m0j1
m0j1

Reputation: 4267

Connect web app to mysql database

I have a web application on Android and iOS which uses html and javascript for the project. I now have local values and app works fine. now I want to use a mysql database for my inputs, are there any good tutorial or sample codes on how to do that. I'll appreciate if you can help me with this. Thanks

Upvotes: 0

Views: 3028

Answers (2)

Eujinks
Eujinks

Reputation: 400

You need to choose a language that will operate server side to manage the database of your web app, e.g. you could use PHP as a language and MYSQL as a database software (it's free and awesome), for examples you could use http://php.net/ and search how to use specific mysql commands in PHP, or use a framework like CodeIgniter which has built in functions for database management and you can view some of them here https://ellislab.com/codeigniter/user-guide/database/active_record.html, but make sure you use the whole user guide on how to use it and how to set up your database configuration properly!

EDIT. If you don't want to use PHP for the actual app then you can use it server side, i.e. use it as part of a server file which connect to database, handle data, send it back, then send it back to your remote app where you can handle it with Javascript.

Upvotes: 1

user3526255
user3526255

Reputation: 66

For web app and mysql communication need a scripting language like php and for database you need a database like mysql there is simple tutorial fo mysql connectivity http://www.androidhive.info/2013/12/android-populating-spinner-data-from-mysql-database/

Upvotes: 1

Related Questions