timgerr,
Capture the field name and value pass it to the PHP page.
<mx:DataGrid id="dg" change="onChange(event)"/>
private function onChange(e:DataGridEvent){
var field:String = e.dataField;
var value:String = dg.dataProvider[e.rowIndex][field];
sendDataToPHP(field, value);
}
-Jeff
--- In [email protected], "timgerr" <[EMAIL PROTECTED]> wrote:
>
> Hello all,
> I have a question on how to return data to a database back end. Here
> is my problem. I have a PHP and MySQL backend that I communicate to
> with a JSon request. So I have a populated datagrid and want to make
> a change (editable = true) and send that data back via a HTTPService
> post. So I post the data to my php page that is waiting the
> information but the problem is, I only have data, to referencing
> information. When I make a change in my database I will do an update
> but I have to reference something (update table set tochange = 'data'
> where reference = 'something ';) How do people update databases with
> changes in datagrids?
>
> Thanks for the help,
>
> timgerr
>