I need to be able to get the results of database queries run on my Webpage to a SQL Server database regarding user information sent from my game in Unity. I'm a gameplay programmer with significant experience in C#, but I'm at a loss trying to figure out how to make this happen.
The bare minimum I need to figure out is how to send a user/password combination to my web page, check the database for the username, and store it if it does not exist. Finally, sending back a Success or Failure depending on whether the user/password combination already existed.
In Unity I have at my disposal two classes for sending HTTP requests.
1.) https://docs.unity3d.com/ScriptReference/WWW.html
2.) https://docs.unity3d.com/ScriptReference/WWWForm.html
I have basic (very basic) understanding of how web technology works, but the finer details required to make this happen are beyond my current knowledge.
My website is hosted on Azure running ASP.Net MVC. Any help at all or pointers in the right direction would be greatly appreciated.
I have so far been able to get some results back using WWW, but they are meaningless to me and I wouldn't know how to tell if the results of a query were even working (based on the responses). I can of course directly check the database for success, but I need to be able get the results in Unity.
My specific goal:
Send two strings (Username, Password) to an ASP.Net MVC Web app. Have the web app add the two strings to a database if the username is not already in the database. Finally, I need to be able to send the result as a string (Success/Failure) to Unity somehow. This is the part I am most clueless on.