# \[php\] send simple data from php to flash

**URL:** <https://forum.kirupa.com/t/php-send-simple-data-from-php-to-flash/116556>\
**Category:** Uncategorized\
**Created:** [July 19, 2004, 3:39pm UTC](https://forum.kirupa.com/t/php-send-simple-data-from-php-to-flash/116556 "2004-07-19T15:39:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alapimba](https://avatars.discourse-cdn.com/v4/letter/a/ea666f/32.png) [@alapimba](https://forum.kirupa.com/u/alapimba)\
**Post date:** [July 19, 2004, 3:39pm UTC](https://forum.kirupa.com/t/php-send-simple-data-from-php-to-flash/116556/1 "2004-07-19T15:39:25Z")

</div>

hello  
this is probably the simplest question about working with php and flash but i’m sick of search and i can’t find the answer or a tutorial that do exactly what i want ☹

i have this php script to get data from my mysql database and i want this data to appear on a flash textfield. i want ALL the data. not only the data from the first row.

the script i’m using is:

\<?php  
mysql\_connect(“localhost”,“ **","** ”);  
mysql\_select\_db(“flash\_news”);  
$qr = mysql\_query(“SELECT \* FROM flash\_news”);  
$nrows = mysql\_num\_rows($qr);  
for ($i=0; $i \< $nrows; $i++) {  
$row = mysql\_fetch\_array($qr);  
echo $row[‘author’].", “.$row[‘title’].”\<br\>";  
echo " “.$row[‘body’].” “.$row[‘timestamp’].”\<br\>\<br\>";  
}  
?\>

now anyone can please(!!) tell me how to put this in a flash txt field?  
Thanks alot and sorry for ask something to basic but i can’t find any tutorial with this. all tutorials that i find is for more complex things and i just need this for now :]

Thanks for your help.

I’ll probably only need to add code to the text field but if’s it’s more than this please explain step by step :sigh:
