Database help im complete noob

Hi i need help with a database system i need someone to point me in the right direction to a tutorial or threads that (more than likely have already been answerd) i am creating an mmo game and i need to save variables to a database so that when you do something it sends it to the database and then the variable is saved to your profile so if you log out it will still be there after you have logged back in for example:

i Have a first person shooter and i shoot 100 people and i get an achievement i want that variable to become true and then the achievement to be shown on screen using GUI Texture. then i would like it to be sent to the database and because you hae to create an account to play it attaches that variable as true to your login details so then if you log off and log back in the database pulls down your details with the data that was saved before so if you go onto the achievment screen it shows the emblem of that achievement that you gained when last on.

please help any help with tutorials or comments will be much appreciated

thanks in advance

P.s sorry for bad spelling and grammar was in bit of a rush.

This answer will come anyways: If you dont know how to do this, an MMO sounds way to ambitious!

But if you are willing to learn then you can use Unity’s WWW class to send information back and forth to a PHP script that will talk with an MySql data base! This is a simple approach.

WWW: Unity - Scripting API: WWW
PHP tutorials: PHP Tutorial - Introduction
MySql tutorial: MySQL Tutorial - Introduction

And it took me 1 second to find this with google: http://wiki.unity3d.com/index.php?title=Server_Side_Highscores

You really should use google some more :wink:

actually the main reason why i was looking for a tutorial was because im trying to create a login system but i am getting problems with the php and database side of things so i was trying to find a solution that would help me in both situations