Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

After looking around on a Google without any success, i feel posting here may be a good idea as I have used this site to answer previous questions.

Anyways, I am currently working on an HTML5 canvas game using;

PHP, MYSQL, Html5, and JavaScript.

I have MYSQL databases setup and an PHP page displaying player high-scores, and usernames. My question is how would I go about displaying the high-scores inside the canvas once the game is over.

As well as saving the high score when the game ends. I've looked on W3SCHOOLS site about AJAX but I'm still unsure of what codes to use inside the JavaScript file.

Any help/reply is much appreciated thanks in advance.

share|improve this question

put on hold as off-topic by Quentin, fancyPants, Mike W, Endoro, Alvin Wong 2 hours ago

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist" – Quentin, fancyPants, Alvin Wong
If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

If you are using jquery you can use $.get to get all highscores.

http://api.jquery.com/jQuery.get/

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.