I currently use this PHP code to take table data serialized by the prototype
ajax framework into an array to be inserted into a database. How can I do this
in FLEX?

$ranking = 101;
foreach ($_POST['playlist'] as $id) {

$updateSQL = sprintf("UPDATE playlistItems SET `pos`=%s WHERE
`id`=%s",
GetSQLValueString($ranking, "int"),
GetSQLValueString($id, "int"));
mysql_select_db($database_list, $list);
$Result1 = mysql_query($updateSQL, $list) or die(mysql_error());
$ranking--;
}