Skip to main content

Posts

Showing posts from November, 2019

Login Service In PHP And MySQL For Android Applications

Generally a service is one type of intermediary for communication between multiple different technologies, so here we will make a service which is used to log in valid users to Android applications. Here the process flow is, the Android app user enters their username and password to the application then presses the login button; now on the login button we call PHP service which connects the My SQL database and checks the user table, and returns a  response to the Android application. For creating the Service in PHP we have to make one page in PHP and also make a  table “tbl_User” for storing user data in My SQL, so by using the service we compare the user data coming from the Android app with tbl_User and return the result. For creating a service follow the below steps. Make Table in MySQL for storing the user. Give it the name “tbl_User” -- this table contains UserName, Password etc; For creating a table run the below script. CREATE   TABLE  IF  NOT  EXI