# Is it possible to output this PHP function in Flash?

**URL:** https://forum.kirupa.com/t/is-it-possible-to-output-this-php-function-in-flash/219518
**Category:** programming
**Created:** [March 17, 2007, 11:09am UTC](https://forum.kirupa.com/t/is-it-possible-to-output-this-php-function-in-flash/219518 "2007-03-17T11:09:51Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Beebs](https://avatars.discourse-cdn.com/v4/letter/b/47e85d/32.png) [@Beebs](https://forum.kirupa.com/u/Beebs)
#### Post date: [March 17, 2007, 11:09am UTC](https://forum.kirupa.com/t/is-it-possible-to-output-this-php-function-in-flash/219518/1 "2007-03-17T11:09:51Z")

</div>

Hi,

I have this following PHP code :

```auto
$sql = "SELECT article_id FROM my_articles WHERE is_published=1 " .
       "ORDER BY date_published DESC";

$result = mysql_query($sql, $conn);

if (mysql_num_rows($result) == 0) {
  echo " <br>
";
  echo " There are currently no articles to view.
";
} else {
  while ($row = mysql_fetch_array($result)) {
    outputStory($row['article_id'], TRUE);
  }
}

```

which the output successfully display in XHTML.

Is the **outputStory($row[‘article\_id’], TRUE);** can be displayed directly in Flash?

I try to make test in Flash as following :

```auto
myData = new LoadVars() 
        myData.ref = this 
        myData.load("http://witheld/witheld/witheld/myoutput.php") 
        myData.onLoad = function(succes){ 
            if(succes){ 
                //trace ("data loaded")
				for(var i=0; i<this.result; i++){ 
                    this.ref["result"+i].mainText_txt.text = this["result"+i] 
                   // this.ref["Comments_txt"+i].text = this["Comments_txt"+i] 
                    //this.ref["holder_mc"+i].loadMovie(this["Image"+i]) 
                } 
            } else trace("Error loading data") 
        } 

```

The result says that the data is loaded but why I see blank screen? FYI : font is embedded.  
Can anyone please help me?  
Thanks
