View Full Version : Data FROM datagrid to MySQL

08-24-2005, 04:33 AM
I think I put this in the wrong forum, so apologies if you already saw it...


I have no problems populating a datagrid from both the database and user entry. What I am confused is how to then go back to the datbase! I have been unable to find any examples of how to insert/update values in a database (mysql) with values from a datagrid.

I can use amfphp or PHPObject to talk to php and then mysql. I just don't understand the best method (best meaning easiest ) to do this. Do you build a db query row by row from the data grid then send that along, or somehow convert the datagrid back to an array of values and send that to php to do the work?

Is there a function I am missing that converts the edited values in the datagrid to an array to be passed??

TIA for any pointers

08-26-2005, 02:09 PM
Ok, I found this which should help. Is a bit more complex but I will take a gander.

Alas, it doesn't really help as I am still curious as to the best way to submit the entire datagrid, not just a new row..