# Flash, PHP and MYSQL

**URL:** https://forum.kirupa.com/t/flash-php-and-mysql/136918
**Category:** Uncategorized
**Created:** [February 9, 2005, 1:25pm UTC](https://forum.kirupa.com/t/flash-php-and-mysql/136918 "2005-02-09T13:25:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dboers](https://avatars.discourse-cdn.com/v4/letter/d/bbe5ce/32.png) [@dboers](https://forum.kirupa.com/u/dboers)
#### Post date: [February 9, 2005, 1:25pm UTC](https://forum.kirupa.com/t/flash-php-and-mysql/136918/1 "2005-02-09T13:25:39Z")

</div>

Via a PHP script content coming from a mysql database is loaded in to Flash. Im using the following script to reach that:

```auto
myData = new LoadVars();
myData.load("properties.php");
myData.ref = this;
myData.onLoad = function(succes) {
 if (succes) {
  for (var i = 0; i<this.cant; i++) {
   var t = this.ref["holder_mc"+i];
   this.ref["Id_txt"+i].text = this["homeID"+i];
   this.ref["Title_txt"+i].htmlText = this["cityName"+i];
   this.ref["Comments_txt"+i].text = this["description"+i];
   t.loadMovie(this["photoName"+i]);
   t.onRelease = function() {
	getURL("detail_home.cfm?homeID="+this["homeID"+i], "_blank", "POST");
   };
  }
 } else {
  trace("Error loading data");
 }
};

```

What i try to reach is to open a certain detail page when one of the loaded thumbnails is pressed or released see the **t.onRelease = function(){**

But that isn’t working. Both detail pages are opening up automaticaly. What am i doing wrong.

thanks in advance 🙂
