How to do a SCORE?

Hi, I’m trying to do the the Score system , with online values ​​. To Appear When players lose or win the game, and compare with others players .

I have a online server to put this database.

But I dont know how.

Some one can help?

Thanks

I don’t know anything about the online part but for the scores you would enter them all into an array and that can be used to sort then in order.