# Another LoadVars problem

**URL:** https://forum.kirupa.com/t/another-loadvars-problem/123786
**Category:** Uncategorized
**Created:** [September 27, 2004, 11:52am UTC](https://forum.kirupa.com/t/another-loadvars-problem/123786 "2004-09-27T11:52:38Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![bmerens](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bmerens](https://forum.kirupa.com/u/bmerens)
#### Post date: [September 27, 2004, 11:52am UTC](https://forum.kirupa.com/t/another-loadvars-problem/123786/1 "2004-09-27T11:52:38Z")

</div>

I try to get a variable from php :

I have a boutton with :

on (release) {

```
              $myLoadVars = new LoadVars();
              $myLoadVars_received = new LoadVars();

              $myLoadVars.var_to_php = myComboBox.getSelectedItem().label; 

```

$myLoadVars.sendAndLoad ( “script.php”,$myLoadVars\_received);

$affich\_var = $envelope\_received.var\_from\_php;  
}

PHP //  
script.php :

\<?  
$result = mysql\_query( “select counter from data\_base where data1=’”.$\_POST[‘var\_to\_php’]."’");

$counter = mysql\_fetch\_row($result);

echo ("&var\_from\_php=$counter[0]");  
?\>

=\> my result of all this : nothing happens. no variable is received from php. ( the is no request ( from the firewall ) from flash to access the internet )

so I think the error is around the sendandload.

any suggestions ???

by the way, the php script works perfectly with loadVariablesNum

thanks for your help!
