Q:

PHP / JS - Leader board for game

I'm creating a leader board (a small results table) for a Javascript game i've created which displays the top three 3 scores, the score will be a string e.g - '100'.
How would i insert/retrieve the score data into and from my DB? the game sits in a wordpress site, are there wordpress php functions that would help me insert/query this data.
thanks in advance, Cam

A:

Ajax would be the way to do this you can create a simple php file that you can set the high scores from when the game ends and retrieve them also with another one.
more on jquery ajax http://api.jquery.com/jQuery.ajax/
an example of php with jquery ajax http://www.php4every1.com/tutorials/jquery-ajax-tutorial/

