You need to create a webservice. This can be done in PHP (I also use RESTful Api’s). These services will return JSON which you can parse through.
Try this out:
http://www.androidhive.info/2012/05/how-to-connect-android-with-php-mysql/
solved Database updates from web host in android