# Php into flex

**URL:** <https://forum.kirupa.com/t/php-into-flex/278792>\
**Category:** Uncategorized\
**Created:** [January 5, 2009, 10:35pm UTC](https://forum.kirupa.com/t/php-into-flex/278792 "2009-01-05T22:35:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mese375](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@mese375](https://forum.kirupa.com/u/mese375)\
**Post date:** [January 5, 2009, 10:35pm UTC](https://forum.kirupa.com/t/php-into-flex/278792/1 "2009-01-05T22:35:58Z")

</div>

I’m new to using flex and I’ve tried a number of ways to bring in some php data into a project of mine with no success. I did not write the php code, but from what i know it gathers data and puts it into a csv. The value I’m trying to extract first is “Station Name”.

What I have now in my code is:

[LEFT][SIZE=2]\<?xml version=“1.0” encoding=“utf-8”?\>[/SIZE][/LEFT]  
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]\<mx:Application[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] xmlns:mx="[/SIZE][SIZE=2][COLOR=#990000][SIZE=2][COLOR=#990000][http://www.adobe.com/2006/mxml[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]](http://www.adobe.com/2006/mxml%5B/COLOR%5D%5B/SIZE%5D%5B/COLOR%5D%5B/SIZE%5D%5BSIZE=2%5D)" layout="[/SIZE][SIZE=2][COLOR=#990000][SIZE=2][COLOR=#990000]absolute[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]" xmlns:esri="[/SIZE][SIZE=2][COLOR=#990000][SIZE=2][COLOR=#990000][http://www.esri.com/2008/ags[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]](http://www.esri.com/2008/ags%5B/COLOR%5D%5B/SIZE%5D%5B/COLOR%5D%5B/SIZE%5D%5BSIZE=2%5D)" creationComplete=“aTempData.send()”[/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]\>[/COLOR][/SIZE]  
[/COLOR][/SIZE]

[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]\<mx:HTTPService[/COLOR][/SIZE]  
[LEFT][/COLOR][/SIZE][SIZE=2]id="[/SIZE][SIZE=2][COLOR=#990000][SIZE=2][COLOR=#990000]aTempData[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]" url="[/SIZE][SIZE=2][COLOR=#990000][SIZE=2][COLOR=#990000][http://beta.glos.us/get\_obs.php?observation=air\_temperature[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]](http://beta.glos.us/get_obs.php?observation=air_temperature%5B/COLOR%5D%5B/SIZE%5D%5B/COLOR%5D%5B/SIZE%5D%5BSIZE=2%5D)"[/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]/\>[/COLOR][/SIZE][/COLOR][/SIZE]

[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]\<mx:DataGrid[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] id="[/SIZE][SIZE=2][COLOR=#990000][SIZE=2][COLOR=#990000]aTempDataGrid[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]" dataProvider="[/SIZE][SIZE=2][COLOR=#990000][SIZE=2][COLOR=#990000]{[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]aTempData.lastResult[/SIZE][SIZE=2][COLOR=#990000][SIZE=2][COLOR=#990000]}[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]\>[/COLOR][/SIZE][/COLOR][/SIZE]  
[LEFT][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]\<mx:columns\>[/COLOR][/SIZE][/COLOR][/SIZE]  
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]\<mx:DataGridColumn[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] headerText="[/SIZE][SIZE=2][COLOR=#990000][SIZE=2][COLOR=#990000]Station Name[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]" dataField="[/SIZE][SIZE=2][COLOR=#990000][SIZE=2][COLOR=#990000]Station Name[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]/\>[/COLOR][/SIZE][/COLOR][/SIZE]  
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]\</mx:columns\>[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT]

[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]\</mx:DataGrid\>[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT]

[LEFT][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff][COLOR=black]the data grid appears with a label, but no data in the columns. I feel like I’ve tried everything and can’t seem to move forward.[/COLOR] [/COLOR][/SIZE][/COLOR][/SIZE][/LEFT]

[LEFT][SIZE=2][SIZE=2][COLOR=black]Any tips or suggestions would be great.[/COLOR][/SIZE][/SIZE][/LEFT]
