User Tag List

Results 1 to 6 of 6

Thread: Get Object

  1. #1
    No Products Registered

    Join Date
    Aug 2008
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Get Object

    Alright, another nooby question. I the REGULAR version of MMF2 to create an ini file, read it, and write to it. I have no idea where the get function is or anything like that. A little help please?

    And I assume ini support and the get function are ported to Java?

    Edit: I just read that php would be a good security so passwords arn't stolen. I don't think I would need much knowledge of php. I need a php file to write a new .ini file to the server when a person signs up with the strings, username, password, and the value to represent their priviliges.

    I"m a complete noob but would like to learn this part.

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Get Object

    You don't write INI's to the server...

    Someone <cough>DavidN</cough> should make a tutorial on log-ins like I told him before. For now, just use his online high scores article to learn and figure out how to manipulate it to work for usernames/passwords: DavidN's Online High Score Tutorial_files.zip

  3. #3
    No Products Registered

    Join Date
    Aug 2008
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Get Object

    I followed the tutorial, but when I load the page, it gives me an error from my webhost. :P

    I am sure I set up the SQL correctly.
    Is this right?
    <html>
    <head>
    <title>Online Scoreboard Tutorial - Scores</title>
    </head>
    <body>
    <?

    $service = "mysql9.000webhost.com";
    $username = "a1205320_Thunder";
    $password = "1rrrrrrrrr";
    $database = "a1205320_Values";

    mysql_connect($service, $a1205320_Thunder, $1rrrrrrrrr);
    @mysql_select_db($mysql9.000webhost.com) or die( "Unable to select database");
    $query = "SELECT * FROM buttonscores";
    $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, "score");
    $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>

  4. #4
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Get Object

    First off, no $1rrrrrr or whatever. That should be $password that goes for the other two as well.

    Basically, don't change anything from the tutorial but the first few lines :P

  5. #5
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Get Object

    By the way, I'm currently making an example.

    It will be up in a few days.

  6. #6
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,825
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)

    Re: Get Object

    The tutorial I wrote was updated recently.

    Might work for you

    http://www.clickteam.com/website/usa/img/uploads/tutorials/download/321_Easy_online_scores.zip

Posting Permissions

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