JSON and Mysqli
-
The problem I am facing is that I am getting the username and password from android app in json form and then I am decoding that json. Now I have to check the username and password using mysqli. So how should I do this? Please help asap.
-
The problem I am facing is that I am getting the username and password from android app in json form and then I am decoding that json. Now I have to check the username and password using mysqli. So how should I do this? Please help asap.
-
vinay dahiya wrote:
So how should I do this?
The obvious way would be by querying the database. Exactly what is your problem?
U can simply copy the json content using file_get_contents('xyz.json') And then decode the file contents using json_decode() and insert them into database using mysqli
-
U can simply copy the json content using file_get_contents('xyz.json') And then decode the file contents using json_decode() and insert them into database using mysqli