PHP into Flash? Help!

I have this code in PHP:


include("connect.php"  ; 

mysql_connect($db_host,$db_user,$db_password) or die(mysql_error()); 
mysql_select_db($db_name) or die(mysql_error()); 
$query = "SELECT message, author, header, date, ip 
FROM tempernews order by id DESC LIMIT 225"; 
$result = mysql_query($query); 


echo "<B>$r[header]</B> - ($r[date])<BR>$r[message]<BR>"; 

I would like to be able to get the same results in a dynamic Text field in flash, anyone know the code, or what I have to change in my PHP? Please help! I’ve been trying this for days!
(view results )