Accessing with android app using php and json

I wrote the php script on server side to access data from mysql and encode in JSON.When use this php file in android app it gives an exception W/System.err: org.json.JSONException: Value <script of type java.lang.String cannot be converted to JSONArray
W/System.err: at org.json.JSON.typeMismatch(JSON.java:111)
at org.json.JSONArray.(JSONArray.java:96)
Please help

4 Likes

how we can share file

What do you mean?

Actually I want to use mysql data in android app

i want to use mysql data in android app

You cannot because Connecting to our databases from External isn’t possible.
And this host is about to host websites, not sources of other applications.

3 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.