Flash game - storing high scores, winners with multiple users

I’ve been asked if I can build a game, which lots of people will play and the overall winner will get a prize.

The game part is simple enough, and I know enough PHP/MySQL to put something together to store the results etc. But is there something already available which could do this part for me, it would save a lot of time, and would probably be better than something I build myself.