# MySql query only returns 1º letter to Flash?!

**URL:** <https://forum.kirupa.com/t/mysql-query-only-returns-1-letter-to-flash/229376>\
**Category:** programming\
**Created:** [June 16, 2007, 1:42pm UTC](https://forum.kirupa.com/t/mysql-query-only-returns-1-letter-to-flash/229376 "2007-06-16T13:42:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RubenFlash](https://avatars.discourse-cdn.com/v4/letter/r/839c29/32.png) [@RubenFlash](https://forum.kirupa.com/u/RubenFlash)\
**Post date:** [June 16, 2007, 1:42pm UTC](https://forum.kirupa.com/t/mysql-query-only-returns-1-letter-to-flash/229376/1 "2007-06-16T13:42:16Z")

</div>

Hi! 🍺

I’m officially lost! I tried everything but I can’t seem to understand what the hell is going on. I have the most simple query ever:

```php

$query = "SELECT * FROM table WHERE name='Ruben'";
$result = mysql_query($query);

echo "&result=".$result;

```

…and then in Flash:

```php

var loads = new LoadVars();
var sends = new LoadVars();

sends.sendAndLoad('http://localhost/go.php?rand='+getTimer()+random(9999), loads, 'POST');

loads.onLoad = function(Success:Boolean){
    if(Success){
       trace(loads.result);
    }
}

```

Pretty simple. The problem is that the trace only gets the first letter of the database result. For example if the query returns Potatoe, I only get P in Flash. I mean, what the hell!?? Please, does somebody know why this happens? I’m just this close to go on a killing spree! Help!
