Drupal site Phonegap application field collection I'm in the process of making a Phonegap application to create nodes of a certain content type. The site I'm writing data to/getting data from utilises Field Collection module, and I've looked at the database structure. It creates additional tables for the contained fields and cross-references them. I was wondering if anyone has come across this situation and how did you manage to solve it.

Note:

I'm using Drupal Services for endpoint,  and my request needs to send all those fields in my fiddle altogether (more than one row).

As for what the fiddle does, I'm creating a table then add more rows to the table.
make sure a field collection exists if you want to go through the Field collection module. Then write the custom php code make sure to use the field collection api. here is an example. another example.

You will have to use AJAX from your phone gap app and send the data you are collecting to your server then use the drupal code to process and insert. 
AJAX from phonegap to PHP

Let me know if you need any more help, i'm just really busy as of late or I would provide a more detailed answer. It's difficult not having the code in front of me.