php - How to connect Android app to mySQL *SPECIFICALLY* -
php - How to connect Android app to mySQL *SPECIFICALLY* -
after @ to the lowest degree 10 hours of pouring on online resources, videos, , tutorials, have 2 questions connecting android app mysql database.
saving files1) tutorials save php files in c/wamp/www/hello_php - example, , when go localhost/hello_php works.
--where store php files if don't want utilize localhost? i.e want utilize mysql's ip address. --for example, guy this video uses this:
httppost httppost = new httppost("http://192.168.168.0.3/~tahseen@amin/php/getallcustomers.php");
--i presume 192.168... ip of server. did save "getallcustomers.php" file? --note, using phpmyadmin handle database.
existing jdbc code2) have created code required insert/update/delete elements db. have done in java using jdbc in eclipse. understanding connecting android app db jdbc not ideal / unsafe / not recommended.
--is code wrote useless? i.e have convert php code?
thanks in advance help
the php file in illustration stored in home folder of user 'tahseen@amin' in subdirectory 'php'. can set php file anywhere on server long accessible http requests. set files in subdirectory of root webfolder, in /var/www/ on server.
as far know android has no back upwards mysql databases, have queries via php (or programming language, long accessible service on server). can send http requests android application in order perform database modification via php scripts on server.
php android mysql
Comments
Post a Comment