# PHP into Flash? Help!

**URL:** <https://forum.kirupa.com/t/php-into-flash-help/36299>\
**Category:** Uncategorized\
**Created:** [November 25, 2003, 3:45am UTC](https://forum.kirupa.com/t/php-into-flash-help/36299 "2003-11-25T03:45:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![knappster](https://avatars.discourse-cdn.com/v4/letter/k/67e7ee/32.png) [@knappster](https://forum.kirupa.com/u/knappster)\
**Post date:** [November 25, 2003, 3:45am UTC](https://forum.kirupa.com/t/php-into-flash-help/36299/1 "2003-11-25T03:45:07Z")

</div>

I have this code in PHP:

```php

<?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); 

while($r=mysql_fetch_array($result)) 
{ 

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 ) [http://www.andrewknapp.com/temp/flashnews/archive.php](http://www.andrewknapp.com/temp/flashnews/archive.php)
