- Home /
Using Unity to connect to a Database
I'm interested in developing a very simple ranking system using my webhost.
I'm not quite sure how to go about accessing the db and checking for ranks and inserting ranks.
Basically, do I use C# to connect to the db. Run a SQL query on the database. Figure out if the player's current score is higher than any higher in the DB. IF so then insert.
To show the rankings, access the db, retrieve all the ranks. and display them in the unity program?
OR do I use like PHP and do this stuff? I don't know much about php but I found a tutorial for php/mysql.
http://www.freewebmasterhelp.com/tutorials/phpmysql
Any advice and help is greatly appreciated. Thanks
Answer by efge · Apr 06, 2011 at 07:19 AM
There is an example in the wiki: Server Side Highscores
incl. MySQL, PHP and JS code
thnx ... jst checked out the link . jst cant wait to start interfacing php with unity .. hope dis helps .. :)
Answer by ravi_gohil999 · Nov 07, 2012 at 09:05 AM
Hi, I am using sql lite and after build the executable doesn't show any values from database....can you help?
Your answer
Follow this Question
Related Questions
Getting Specific mySql Row by searching table with a name 0 Answers
php, sql security 3 Answers
A node in a childnode? 1 Answer
how make player database 1 Answer
Unity SQL Database? 3 Answers