You need to first obtain a Mysql Library.
Then you need to create connection socket to your websites mysql database ported usually at 3306.
Then you need to set up some sort of event update to submit a query to your database of each players skills.
There a tons of tutorials on R-s for reference.