View Single Post
  #4 (permalink)  
Old 03-31-2011, 07:59 PM
ruy ruy is offline
Newbie
 
Join Date: Feb 2011
Posts: 8
Exclamation MySql example

Hi, I am new to Basic4Droid and while experimenting with this example I find that it works fine as is. But if I try to replicate the php web service in my server and using my database, it simply refuses to work. When it reads the first table (Names & Id's) it sends the following message:

"An error has occurredin sub:main_hc_responsesuccess (B4A line:63)
countries = parser.NextArray 'returns a list with maps
java.lang.RuntimeException: JSON Array expected.
continue?"


It is an exact replica of the files in the tutorial except for quotes missing in the php listing for the MySql server credentials (which I changed for the ones in my server/database) and the address of the php file.

The log file shows identical structures for the one that runs with the original http://www.basic4ppc.com/android/countries.php and the one that runs at mt server, though, it refuses to continue.

What am I doing wrong?

Ruy
Reply With Quote