Everything seems to be fine.
I have this php script wich takes out a querry from MySQL
and puts it all in a variable &wynik, then printing it.
Here:
<?php<br>// Require the database class<br>require_once('includes/DbConnector.php');<br><br>// Create an object (instance) of the DbConnector<br>$connector = new DbConnector();<br><br>// Execute the query to retrieve articles<br>$result = $connector->query('SELECT data,klub,kto FROM lezbend_kal ORDER BY data DESC');<br><br>// Get an array containing the results.<br>// Loop for each item in that array<br><br>$wynik = "";<br>while ($row = $connector->fetchArray($result)){<br><br>$tmp = $row['data'];<br>$tmp2 = $row['klub'];<br>$tmp3 = $row['kto'];<br>$tmp4 = "$tmp $tmp2 $tmp3";<br>$temp = $wynik;<br>$wynik = "$temp $tmp4 </a> </p>";<br>}<br><br>print "Body=$wynik";<br>?>
when i run this php from a browser, it displays the right thing:
Body=2005-02-28 Piekarnia only Qla // and so on.... like in the DB
and Body is my Dynamictext Variable.
In flash, i have this dynamic text filed that is converted to movieclip with an action
onClipEvent (load) {
loadVariables ( "http://www.wizuale.pl/index.php" , this , "GET") ;
}
I still can't get any result in flash. It stays empty.
THe strage thing is that even if i print (in php) just a simple word, like:
print "Body=work god damn!"; It is only displayed in a browser but not imported to flash.
the flash side seams to be ok, because it imports all txt written variables.
Reasuming:
my flash loads variable Body from a txt on serwer and displays it properly, but does not import
the same variable from a php printing it.
WHY?