# MySQL related problem

**URL:** https://forum.kirupa.com/t/mysql-related-problem/190954
**Category:** flash
**Created:** [June 15, 2006, 10:27pm UTC](https://forum.kirupa.com/t/mysql-related-problem/190954 "2006-06-15T22:27:17Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![TechedRonan](https://avatars.discourse-cdn.com/v4/letter/t/8797f3/32.png) [@TechedRonan](https://forum.kirupa.com/u/TechedRonan)
#### Post date: [June 15, 2006, 10:27pm UTC](https://forum.kirupa.com/t/mysql-related-problem/190954/1 "2006-06-15T22:27:17Z")

</div>

I’m trying to make a result shower in flash, and I need it to take some information from MySQL. I’ve got the SQL database and php script done for it.

Could be a problem with the php file though, but my guesses are that it’s the actionscripting.

It’s supposed to show 2 bars and percentage of the votes. Script for percentage and showing etc works, i’ve tested. It’s just that it can’t get the two values i want.

Actionscript:

```auto
var receiver:LoadVars = new LoadVars();
statusText.text = "Loading vote data...";
receiver.onLoad = function(ok) {
    if (ok) {
        statusText.label = "";
        for (var i = 1; i <= receiver.total; i++) {
            receiver["dataPacket" + i] = receiver["vote_data" + (i)].split("|");
            var _value1:Number = receiver["dataPacket" + i][0];
            var _value1:Number = receiver["dataPacket" + i][1];
            delete (receiver["vote_data" + i]);
            _root.First = _value1;
            _root.Second = _value2;
        }
    } else {
        statusText.label = "Vote information was not found!";
    }
};
receiver.load("http://techedronan.no-ip.info/get.php");

```

The php codes won’t fit in, but my guess is that theres not any problems with them.
