Loading...

2. Android PHP MySQL Tutorial | PHP Database Connection

2. Android PHP MySQL Tutorial | PHP Database Connection
Here is a Complete Step by Step Android PHP MySQL Tutorial. This tutorial will cover all the basics of connecting Android Application to MySQL Database. 

This is the part one and here we are creating the php scripts that will be used to connect with the database. 

Go to the next video from this link 
https://www.youtube.com/watch?v=-I80bma4uWo&index=3&list=PLk7v1Z2rk4hjQaV062aE_CW68xgXdYFpV

And you can get the source code from these links 


Server Side Project: https://adf.ly/1iIIsV
Android Studio Project: https://adf.ly/1iIJFW

For more tutorials visit:
https://www.simplifiedcoding.net

RRelated Posts

Persisting Data with Room on Android

At Google I/O we learned about Room and how great it is for persisting data without having to write all that tedious boilerplate code we would if we were just using a SQLite database on its own.

CComments

  • Simplified Coding
    Here is an updated tutorial using Retrofit and SLIM Micro PHP Framework

    Follow it here: https://goo.gl/pwGVcJ

    The above tutorial will cover everything and is updated.
  • Junior Yao
    I do not have HTDOCS folder
    HOw to get this folder any tutorial on that please give me the link thanks you
  • Filip Husnjak
    I wrote the exact same code and created database on phpMyAdmin. I can run php scripts in my browser without any problem and it inserts new users too, but whenever i run my android app with your code i found out with debugger that the line "OutputStream outputStream = httpURLConnection.getOutputStream();" throws IOException and nothing happens to the database/table. I tried with many versions of http link but it just throws that exception. I also check which ip adresses my local host and tried with the same link that works in the browser and still it threw the same exception. Please if someone can help. Thank you
  • shreekanti sharma
    Sir can you please tell me will it work on online web server like 000webhost
  • samuel Wangui
    While testing the PHP script I got a fatal error call to undefined method DbOperations createUser in registerUse. Php line 20
  • little programmer
    HOW CAN I GET THE SOUCE CODE
  • Raymund Balatayo
    Hello Simplified Coding! Please notice me, I have a problem on my Project please help me
  • Santosh Kumar
    hi sir i am trying this code in web server but error appearing unknown host name but my host name is correct local host it is working fine
  • Jenish Parmar
    Hello sir , I m student of engineering , this code is exilent but i have need one modification , if user can Login successfully , it's massage open in next activity XML... Can u send me this as well as possible , I have project viva tomorrow , please reply me fast ,
    MY EMAIL ID : jenishparmar12@gmail.com
  • Sagar Rawal
    why is the user is root here??
  • damay duterte
    I follow all the videos from episode 1-14 and in the episode 2 you stated that you are creating a CRUD CREATE READ UPDATE and DELETE.. but from what episode you creating a update and delete?
  • m alsulaimi
    <- this simple is not for so when I testing the coding in postman it sho error so what I do can any one help me
  • Hamza Nasir
    Can you post the link to the SLIM framework you just showed in the video?
  • amit bajarangi
    sir i have already email some query but you didnt reply only sir
  • Ayush Sharma
    what is the use of sublime here? can v make the php scripts in simple notepad ?
  • Nitish Sharma
    I get this error while doing the post in postman

    Fatal error: Cannot use isset() on the result of an expression (you can use "null !== expression" instead) in
  • Aamrin Khan
    sir i am doing this on wamp rather than xamp so will is work fine with wamp server reply sonner