This may make things clearer
Here is my PHP code (I have replaced the username and password for obvious
reasons)
<?php
echo "<center>";
// set your infomation.
$dbhost='localhost';
$dbusername='username';
$dbuserpass='password';
$dbname='mkhighscores';
// connect to the mysql database server.
mysql_connect ($dbhost, $dbusername, $dbuserpass);
if (!mysql_select_db($dbname))
die(mysql_error());
$game = $_GET['game'];
$query = " SELECT game_id,name,score FROM highscores_tb WHERE game_id =
'$game' " .
" ORDER BY score DESC LIMIT 0, 10";
$result = mysql_query($query) or die('Error, query failed');
echo $result;
?>
From my Flash movie I have the following code:
Loaded_txt.text = "Loading";
LoadVarsObj = new LoadVars();
LoadVarsObj.onLoad = function() {
Loaded_txt.text = "Loaded";
}
LoadVarsObj.load("http://www.mediakitchen.co.uk/highscore2.php?game=1");
Basically I was hoping the above would result in my flash movie receiving the
top ten scores in some form or other.
Any help would be really appreciated
Paul