Paul, Here is my method of connecting to a hosted server. It works great and gives almost instant results.
The write-up includes the call and read logic from b4a and the php logic to read the query, search the DB, and return the query.
You are not 'syncing' as I am, but the principle of reading the DB would be the same, I would think.
You only have to issue the b4a 'query' to 'read' and the php reading of the DB and returning the result.
Cliff
My need was to sync calendars in which user 'A' changes the calendar and sends the change to other users by writing records to the hosted database. The other users query periodically to see it they have any incoming sync records and read them if available. I had hoped to use Erel's JDRC2...