Ah that did it. Thanks snapple.....
NEXT PROBLEM!!!
My variables load just fine now. But a new problem has emerged. When I get it into Flash all the danish characters dissaper, and some odd letters are added instead. They display fine in the database so I assume that the problem lies within the PHP script....
The PHP looks like this now:
PHP Code:
<?php
$linkID= mysql_connect("xxx","xxx","xxx");
mysql_select_db("nijen8mudwebdk", $linkID);
$resultid=mysql_query("select text from content where subcat='synergi'", $linkID);
$textid=mysql_fetch_array($resultid);
$text=$textid[text];
if ($resultid) {
echo "&text=".urlencode($text);
} else {
exit;
}
?>
And the actionscript:
PHP Code:
loadVarsText = new loadVars();
loadVarsText.gosub=_root.gosub;
loadVarsText.onLoad = function(success) {
if (success) {
trace("done loading");
scroller.text = this.text;
} else {
trace("not loaded");
}
};
loadVarsText.sendAndLoad ("http://localhost/text.php", loadVarsText, "POST");