Mobile app not able to access database

I am not able to access the .php pages and mysql databse through the Android App which I am developing. But when the pages are accessed through web/mobile browser, the pages and the database gets connected. The reurned json data is displayed in the browser. The url format I am using is:

http://kots.epizy.com/kots/test_page.php

Please guide in this regard.

@John_RK said:
I am not able to access the .php pages and mysql databse through the Android App which I am developing. But when the pages are accessed through web/mobile browser, the pages and the database gets connected. The reurned json data is displayed in the browser. The url format I am using is:

http://kots.epizy.com/kots/test_page.php

Please guide in this regard.

It’s just because because of the security system, the security system ensures that your website is not accessible by other apps except for a browser. The security system only wants real browser to access your site.
And also before you ask these question please check the KB, or search relevant post about your problem.

Now I have found the KB article,
Go here if you want more elaborate answer:
https://infinityfree.net/support/javascript-error-using-api-or-mobile-android-app/