# Php return undefine value to actionscript

**URL:** <https://forum.kirupa.com/t/php-return-undefine-value-to-actionscript/234796>\
**Category:** programming\
**Created:** [August 6, 2007, 9:37am UTC](https://forum.kirupa.com/t/php-return-undefine-value-to-actionscript/234796 "2007-08-06T09:37:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rocky86](https://avatars.discourse-cdn.com/v4/letter/r/c2a13f/32.png) [@rocky86](https://forum.kirupa.com/u/rocky86)\
**Post date:** [August 6, 2007, 9:37am UTC](https://forum.kirupa.com/t/php-return-undefine-value-to-actionscript/234796/1 "2007-08-06T09:37:13Z")

</div>

Hi I having problem here how come the uid is undefined value on the actionscripts? the uname is able to be display but the uid is undefinded but I don’t know why it return undefinded value? uid is the id of the username like eg: 1,2,3

PHP Code:

```php
$resultpostal=mysql_query("SELECT location.uname,location.uid FROM location,districts WHERE districts.districtno ='$postalno' AND
location.lat BETWEEN districts.startlat AND districts.endlat AND location.lng BETWEEN districts.startlng AND districts.endlng");$counterx=0;
while($row=mysql_fetch_array($resultpostal)){
foreach($row as $col_value){
$temp[$counterx]=$col_value;
$counterx++;
}
  $report.="uid"."=".$temp[0]."&";
  $report.="uname"."=".$temp[1]."&"; echo $report;       

```

Anybody know?
