Hello guys, how are you today? Hope you will all in the best of your life.
Today we are going to see how to connect our android app with mysql databse using php. Just follow the video and post comments if you have any problem.
For more info visit on facebook https://www.facebook.com/androidcoolstuffs
Thank you
Today we are going to see how to connect our android app with mysql databse using php. Just follow the video and post comments if you have any problem.
Thank you
This comment has been removed by the author.
ReplyDeleteit worked nice
DeleteHi! thanks a lot for this tutorials! I exactly followed the steps shown in the video tutorials,but after running the app its not fetching the data, all I get after entering values in edit text is the message " fetching data ....." but no data is shown from the database. Also after checking in logcat it shows the error: "Error parsing data org.json.JSONException java.lang.String cannot be converted to JSONArray" ! How to resolve this?
ReplyDeletegot the same error. Any suggestions?
DeleteThanks
Same issue here, any fix ?
DeleteI had the same issue, it's happening because there was something wrong in the demo.php file.
Deletein my case I just changed the mysql_select_db value into the php file, this is the database name you can find the name into the phpMyAdmin, in the video he says that value is the table name but actually is the database name.
These are the values for the database connection:
just replease each one for yours.
mysql_connect("MySQL_HOSTNAME","MySQL_USERNAME","MySQL_PASSWORD") or die(mysql_error());
Deletemysql_select_db("YOUR_DATABASE_NAME");
hey francisco i am having trouble importing the project file into eclipse. Can I just use the import function of eclipse or do i have to create files 1 by 1. main activity etc
DeleteI have Error n logCat
ReplyDelete05-29 09:20:08.217: E/log_tag(1430): Error in http connection java.net.UnknownHostException: Unable to resolve host "myhostname.com": No address associated with hostname
05-29 09:20:08.217: E/log_tag(1430): Error converting result java.lang.NullPointerException
05-29 09:20:08.245: W/EGL_emulation(1430): eglSurfaceAttrib not implemented
05-29 09:20:08.257: D/OpenGLRenderer(1430): TextureCache::get: create texture(0xb7f752e0): name, size, mSize = 35, 61440, 1200228
05-29 09:20:08.257: E/log_tag(1430): Error parsing data org.json.JSONException: End of input at character 0 of
I have this error:
ReplyDeletelog_tag﹕ Error parsing dataorg.json.JSONException: Value <!DOCTYPE of type java.lang.String cannot be converted to JSONArray
What can i do?
Please reply fast..
ReplyDeleteHi! Nice video but can't see the files
ReplyDeleteHi! Nice video but can't see the files
ReplyDeleteSir, In this project you have only fetch the data from database.
ReplyDeleteCan u pls upload a video that will insert the data in database.
OR else can u pls send the java code n php code for inserting value to database.
Email Id: chiragmali79@gmail.com
Sketch is best android app for drawings.
ReplyDeletehttp://techpave.com
What is mysqlhostname
ReplyDelete