Mobile app Rest Service from sql server through php - Authentication Login screen

Hello,
I'm currently practicing on making a business application reading data from xml restservice which is working fine. i can show data from my sql server on the screen.
What i want is to make a login screen on the application, just a simple user name and password and a button. User name and password are stored in my sql database. I do not know how this could work:
1. i could use my php file that exports the xml while it joins with the users table, and when the response text is empty then authentication is failed - otherwise move to next screen.
2. or i could just read the user name and password from the table and compare them with the user input.

Also, Im not a js wizard, so if you could help me with that in detail, i would be greatful

Thank you in advance,

Stg
1 person has
this question
+1
This topic is no longer open for comments or replies.