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

I use WWW and PHP/mySQL, it's pretty easy.

There is an example in the wiki: Server Side Highscores

incl. MySQL, PHP and JS code

Hi,
I am using sql lite and after build the executable doesn’t show any values from database…can you help?