php - Using online mysql hosting server -


i don't want jump without having idea how approach this.

what i've done

i have set mysql server on 000webhost.com . have created database , table within database.

i have added 1 entry table.

this worked , provided following information 000webhost:

$server = "mysql17.000webhost.com"; $user = "a5032812_stfback"; $pass = "*******"; $db = "a5032812_dencal"; $conn = mysqli($server, $user, $pass, $db); $sql = "insert comments values(....)"; 

so added php file.

what want do

i have android app edittext field. want user input comment , stored online mysql database.

where i'm confused

i have done using local server , website. have online server , android.

so need connect php file through android (i.e - in android code). run php file android , insert data database? right? if so, i'll research myself how connect php file. i'm used using post html commands, i'm sure different in android.

secondly, php file located. in www folder in local server in wamp. have online server , have no idea store it. have no idea how access it.

also, why need provide server information in php file if located on server? if. shouldnt obvious is?

mainly i'm not sure how access php file android.

i don't need code as need overall understanding of concept in general. i'm new this.

first of can not directly communicate mysql database android app. need create web services in php. , calling methods android can access database.

after creating webservices need call url android app. can use asynctask or can use third party plugins okhttp or volley or retrofit


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -