ok i tried Joshua4550's insert statement but the flash game is still reporting "undefined"
the PHP now looks like this:
<?
$mysqlhost = "**********";
$mysqluser = "**********";
$mysqlpass = "**********";
$mysqldatabase = "**********";
mysql_pconnect($mysqlhost, $mysqluser, $mysqlpass);
mysql_select_db($mysqldatabase);
$name = strip_tags($_REQUEST["var1"]);
$score = strip_tags($_REQUEST["var2"]);
$query = "INSERT INTO `scores_ast` (`score`, `name`) VALUES ('$name','$score')";
mysql_query($query);
?>
DOH!!!
also FYI i am copying and pasting the DB name and user etc directly
just out of interest where is the word "undefined" coming from?