Hello,
I want to ask how can I create user database? I want to create for example simple web player chat, just login screen and then chat room. How can I create this login screen working with database? I haven’t experiencies with networking, so if anyone can help me.
Thanks
Marshall
1 Answer
1You can work with a database for this, but if you are working only with a webplayer it maybe better to work with xml files.
If you still want to work with SQL databases, you have 2 options I can think of
One is creating costume PHP files (or any kind of server side programming you use) that dose the SQL connection, Input and Output (don’t forget to secure them) and use the built in WWW class to access them from unity
The other one, and I am not sure how this is reacting in a Webplayer, I only tried it in a standalone myself, Is including the “MySql.Data.dll” in your plugins folder
you said you don’t have any experience with networking, but if you do have some coding experience this shouldn’t be that hard
If you know C# and know how to work around with XML, I really think skipping the databases on a chat program (or a simple login for that matter), it will be easier and faster on your program
If you are new to C# but know other server side programming languages I recommend the first method, much simpler