# Unusual problem with flash (php)

**URL:** <https://forum.kirupa.com/t/unusual-problem-with-flash-php/160211>\
**Category:** Uncategorized\
**Created:** [August 24, 2005, 5:51am UTC](https://forum.kirupa.com/t/unusual-problem-with-flash-php/160211 "2005-08-24T05:51:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kdd](https://avatars.discourse-cdn.com/v4/letter/k/ecb155/32.png) [@kdd](https://forum.kirupa.com/u/kdd)\
**Post date:** [August 24, 2005, 5:51am UTC](https://forum.kirupa.com/t/unusual-problem-with-flash-php/160211/1 "2005-08-24T05:51:49Z")

</div>

in my php file i’ve this code

```php
 echo "total=$totalRows";

```

and i’m trying to get this value in flash, it works, but not the way i want it.  
in flash i’ve this code:

```auto
loadVariables("<A href="http://localhost/load.php",this,"POST");[/CODE">http://localhost/load.php",this,"POST");

```

and then,

```auto
tempVar = int(total);
 trace("TempVar " + tempVar);

```

it traces “TempVar 0”.

now, if i make a button and put this code,

```auto
tempVar = int(total);
 trace("TempVar " + tempVar);

```

it traces “TempVar 1”  
because in my mySql database i’ve one row.  
basically, i’ve found out that until the first frame isn’t finished compiling code, these php returned valued don’t get refreshed, is there any way i can get the same value from the code i put on the frame as i get from the button click? 🙂
