Android MySQL Tutorial to Perform Basic CRUD Operation Prerequisites – Android MySQL Tutorial
Android Studio (Though you can do the same with eclipse) Wamp / Xamp Server (You can also use a live hosting server)
Creating the MySQL Database
First create a database table.
As you can see I have a table named employee with 4 columns (id, name, designation, salary). Id is set auto increment and primary key so we do not need to insert id. Now we will create our php scripts.
Creating PHP Scripts The first thing we need is to connect to the database. So create a file named dbConnect.php and write the following code. 1 2 3 4 5 6 7 8 9 1 0 1 1 1