Author: admin
• Monday, February 22nd, 2010


This is a very simple version of a PHP high score list, but is very easy to edit yourself and make changes.

Related posts:

  1. Auto-FP High Speed Flash Tutorial This video discusses into depth about Auto-FP high speed...
  2. Simple flash making tutorial for thanksgiving This simple flash making tutorial will show you how...
  3. Flash Tutorial-ActionScript Ok this one isnt much of a Great tutorial...
  4. Successful Flash Games And Office Boredom (or Why You Should Know Your Audience) When it comes to online Flash games, or any...
  5. Adobe Flash Animation Tutorial : Flash Animation Tutorial: Creating Key Frames Key frames in Adobe Flash tell the program which...

Related posts brought to you by Yet Another Related Posts Plugin.

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

13 Responses

  1. Great tutorial. I forgot to select the table too.

  2. 2
    projectfinale 
    Monday, 22. February 2010

    I apologize for the late response, I didn’t notice you replied again… I think to be on the safe side, you should always close a connection, but I will admit that I don’t do it half the time and haven’t run into any major problems.

  3. actually should mySql close connection be used after the scores have been received?
    mysql_close – or is it unimportant because its not a persistent connection?

  4. ah i just figured it out. When I connected to mySqlAdmin I connected correctly there but I’d put the name of the table in where the name of the database should have been and it screwed everything up. It works perfectly now :) going to move on to the next part of the tutorial

  5. 5
    projectfinale 
    Monday, 22. February 2010

    it shouldn’t be… It is being set to the results… It should equal 1 if it is returned correctly… which would make it go through the while loop…

    it works fine for me still… the only think i could think of is to set it to 0 above…

    $line = 0;

    just put it at the top so it is initialized… otherwise i would look up the error in google and see what results you get

  6. is $line an undefined variable?

  7. I’ve already connected properly to the database. I played around with it initially and got disconnected errors so I returned it to the way it was and the errors disappeared so I am connected to the database I’m pretty sure

  8. 8
    projectfinale 
    Monday, 22. February 2010

    If you check, I failed to add in the connect to database in the code, because i was filling in my own… so add this code and it should work fine…

    $link = mysql_connect(SERVER,USERNAME,PASSWORD);
    mysql_select_db(DATABASE NAME);

    Add those lines in at the top of the PHP code and it should work fine, fill in the all caps variables first

  9. Hey I used your code but I keep getting errors

    Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in [filepath].scores on line 9

    I’ve connected my database and made the for loop.

    I think it has problems with if($line = mysql_fetch_assoc($results)){

    I get $line an undefined variable when I play around

    Any such luck? Going to look at your other videos now

  10. 10
    projectfinale 
    Monday, 22. February 2010

    hey, new video is up, enjoy!

  11. 11
    steinbergur 
    Monday, 22. February 2010

    @projectfinale
    THANKS!
    Can you Reply this comment when u have uploaded ?

  12. 12
    projectfinale 
    Monday, 22. February 2010

    yup no problem, ill post a second video in the next few days :)

  13. 13
    steinbergur 
    Monday, 22. February 2010

    Hey Babeee!
    Can you tell me how I put score from flash game into mysql ? …. btw. I know PHP and mysql. Just thinking how I do it in Flash

    maybe can u tell me also how I connect Online User into the Flash? Like Automatic insert when he-she top the highscore?

Leave a Reply

Anti-Spam Protection by WP-SpamFree