R remsoft2000 New Member Licensed User Longtime User Apr 11, 2011 #1 :sign0085: I have an online mysql database and would like to get just plain text, not JSON, returned via an HTTP request. I don't seem to be able to produce a code that works. Does anyone have a simple example?
:sign0085: I have an online mysql database and would like to get just plain text, not JSON, returned via an HTTP request. I don't seem to be able to produce a code that works. Does anyone have a simple example?
Erel B4X founder Staff member Licensed User Longtime User Apr 11, 2011 #2 You can use this example as the base of your php code: http://www.b4x.com/forum/basic4andr...-connect-android-mysql-database-tutorial.html Instead of calling json_encode, convert the rows data to text as you need. See this link for more information about mysql_fetch_assoc: PHP: mysql_fetch_assoc - Manual Upvote 0
You can use this example as the base of your php code: http://www.b4x.com/forum/basic4andr...-connect-android-mysql-database-tutorial.html Instead of calling json_encode, convert the rows data to text as you need. See this link for more information about mysql_fetch_assoc: PHP: mysql_fetch_assoc - Manual