So as the title states I need help working with a script to access my databse, Here is what I have so far.
A running database with a login and register system. The user logs in with their user name and password or registers with their Name, Username, and Password.
Here is what I want to do now.
I want to add more columns to this line, A playerX, playerY, and playerZ. I can add these columns easily but here is the problem, I am VERY new to php. I am decently proficient in C# so the coding side of things looks good there.
So here is a rundown on what I need some help with.
Player Logs in and gets returned their Username.
Loads the game scene.
Send the username back to the database and check the XYZ affiliated with that name.
If there is no value, create one using a default number I set.
If it did find info in the respective columns, Return to me the numbers.
Finally I use some C# to get, store, and set those values respectively.
(oh also when the user quits the game those values are updated with new values)
Currently all this is handled with playerprefs, but I want it to check my database for security and convenience purposes.
How do I go about doing this? I just need to check and update the values, get a return then stick those values into variables. Can someone help me?
Thanks in advance!