User Tag List

Page 1 of 9 1 2 3 ... LastLast
Results 1 to 10 of 83

Thread: Online Highscores Help

  1. #1
    No Products Registered

    Join Date
    Nov 2006
    Location
    Australia
    Posts
    175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Online Highscores Help

    Hey everyone.

    I'm making a game and trying to have online highscores for it.
    i'v been following this tutorial http://www.clickteam.com/eng/resources/online_score/onlinescoreboards.html#setu

    I just uploaded a notepad file but instead of saying this

    pos name score date submitted
    1 tom sweeney 172 2008-2-11 12:31:40


    I get this

    \n"); $loopindex++; } ?>
    pos name score date submitted
    $thispos $thisname $thisscore $thisdate


    I don't really have any idea what i'm doing and dunno what has gone wrong. I'v checked the coding and it all seems fine, the only difference is i changed buttonscore to highscores.

    Help very much appreciated
    Dylan

  2. #2
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Posts
    2,023
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Online Highscores Help

    sounds like PHP isn't supported on your server, you could try the VCade remote (on the right)

  3. #3
    No Products Registered

    Join Date
    Nov 2006
    Location
    Australia
    Posts
    175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Online Highscores Help

    What do you mean?(sorry not experienced with this html stuff)

    It was suggested to use this site in the tutorial, and i have not done any coding in my game that even connects to the highscores yet.

    Thanks very much for the reply though neat kliker.
    If DavidN could reply i would be very grateful.

  4. #4
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Posts
    2,023
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Online Highscores Help

    PHP www.php.net is not HTML, it is a server side coding program and most free hosts do not support it

  5. #5
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Online Highscores Help

    Hi dylan,

    It sounds like NK2 is right here - your webspace doesn't support PHP and is trying to interpret the file as HTML instead. Which host are you using?

    Although having said that, I'm surprised that a host would have support for SQL and not PHP to go with it - perhaps the reading of the file type is causing a problem? You say you uploaded a "Notepad file", but that could mean anything - it should end with the extension ".php" to be interpreted correctly.

  6. #6
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Posts
    2,023
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Online Highscores Help

    Quote Originally Posted by DavidN
    it should end with the extension ".php" to be interpreted correctly.
    Enable file extensions using the Tools > Folder Options > View list, else your not actually seeing file extensions at all

  7. #7
    No Products Registered

    Join Date
    Nov 2006
    Location
    Australia
    Posts
    175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Online Highscores Help

    Thanks for the replies!

    The host i am using is bytehost.com

    I put .php at the end of it. Neat kilker ill try this (Tools > Folder Options > View list) in about 7 hours, goto go to school now = )

    Thanks again for the replies and i hope to give more info soon.

  8. #8
    No Products Registered

    Join Date
    Nov 2006
    Location
    Australia
    Posts
    175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Online Highscores Help

    Ok back.

    Quote Originally Posted by neat_Kliker2
    Quote Originally Posted by DavidN
    it should end with the extension ".php" to be interpreted correctly.
    Enable file extensions using the Tools > Folder Options > View list, else your not actually seeing file extensions at all
    Are you talking about on bytehost to change the folder options? I can't find it on the site and it's not in notepad.

    I know this is asking allot but here is my code, are there any easy to spot errors?

    <html>
    <head>
    <title>Online Scoreboard Tutorial - Scores</title>
    </head>
    <body>

    <?

    $service = "sql112.byethost13.com";
    $username = "b13_1564643";
    $password = "*******";
    $database = "highscores";

    mysql_connect($service, $username, $password);
    @mysql_select_db($database) or die( "Unable to select database");

    $query = "SELECT * FROM highscores";
    $result = mysql_query($query);
    $num = mysql_numrows($result);

    ?>

    <table>
    <tr class="header"><td>Pos</td><td>Name</td><td>Score</td><td>Date Submitted</td></tr>

    <?

    $loopindex = 0;

    while ($loopindex < $num) {

    $thisname = mysql_result($result, $loopindex, "name");
    $thisscore = mysql_result($result, $loopindex, "combatexperience");
    $thisdate = mysql_result($result, $loopindex, "datesubmitted");
    $thispos = $loopindex+1;

    echo ("<tr><td align=left><p>$thispos</p></td>
    <td align=center><p>$thisname</p></td>
    <td align=center><p>$thisscore</p></td>
    <td align=center><p>$thisdate</p></td></tr>\n");

    $loopindex++;
    }

    ?>

    </table>
    </body>
    </html>

    Also in my ftp client in the htupload(think it's called that) folder, it says "COM SHOULD BE UPLOADED HERE! file" not sure if this is a problem...

    Again i very much appreciate this as it will give my game a new dimension of fun = )

  9. #9
    No Products Registered

    Join Date
    Nov 2006
    Location
    Australia
    Posts
    175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Online Highscores Help

    i think i have found a problem. In the FTP client it says that the notepad file i uploaded is:

    Dislpayscores.php.txt

    Again im really not sure..

  10. #10
    No Products Registered

    Join Date
    Mar 2007
    Location
    San Diego
    Posts
    280
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Online Highscores Help

    that would probably be the problem, it needs to just be displayscores.php

Page 1 of 9 1 2 3 ... LastLast

Similar Threads

  1. online highscores
    By mickarrow in forum SWF/Flash Export Module Version 2.0
    Replies: 12
    Last Post: 21st August 2011, 03:27 PM
  2. Online highscores?
    By BHGames in forum iOS Export Module Version 2.0
    Replies: 6
    Last Post: 23rd October 2010, 12:01 PM
  3. Online Highscores - error message
    By Solgryn in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 17th February 2009, 09:51 PM
  4. How to do online highscores
    By Robin_Manager in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 30th August 2008, 07:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •