-
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.
-
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
-
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>
-
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
-
Re: Get Object
By the way, I'm currently making an example.
It will be up in a few days.
-
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