Código Flex :
for(var i:int=0;i<dg_list_products_registers.dataProvider.length;i++){
prod_id = dg_list_products_registers.dataProvider[i].prod_id;
createContacts_productsResult.token = contactsproductsService.createContacts_products(cont_id, prod_id);
}
esto lo hago en el evento result del s:CallResponder con el que grabo los datos del cliente, el problema es que solo me esta insertando 2 productos relacionados y luego en el tercero me sale el mensaje channel disconnected before an acknowledgement was received, que podria ser? el backend lo estoy haciendo en php y la funcion que me guarda es la siguiente:
Código PHP :
public function createContacts_products($cont_id, $prod_id) {
$stmt = mysqli_prepare ( $this->connection, "INSERT INTO $this->tablename (cont_id, prod_id) VALUES (?,?)" );
$this->throwExceptionOnError ();
mysqli_stmt_bind_param ( $stmt, 'ii', $cont_id, $prod_id );
$this->throwExceptionOnError ();
mysqli_stmt_execute ( $stmt );
$this->throwExceptionOnError ();
mysqli_stmt_free_result ( $stmt );
mysqli_close ( $this->connection );
}Si me pueden ayudar se los agradeceria en el alma.
