Money counter in php for a flash game

Hi, what I would like to realize, is a flash game, a good example would be a slot machine, in which money of the player are retrieved by a database, and are updated as long as the game goes on. I have this example of slotmachine which i really like: game.
I am quite able to send the score to the database ( i am using Mysql) but i cannot manage to get the score back from the database, and tell to the database only to look on an user score. Please Help!!