Designing Android app for remote database | Sololearn: Learn to code for FREE!


Designing Android app for remote database

I know username and password for remote database to see data in it. I don't know how the php files written to access them. Can I create an application for that data?

6/2/2017 9:43:46 AM

lohith mudragada

3 Answers

New Answer


Ok bro :) The most basic way to connect the database from php: <?php $servername = "remote_host"; //the remote host database address $username = "username"; $password = "password"; // Create connection $conn = newmysqli($servername, $username, $password); // Check connection if ($conn->connect_error) {     die("Connection failed: " . $conn->connect_error); }  echo "Connected successfully"; ?>


I'm sure you should first understand the meaning of commas, dots and question marks in your post.


nice answer bro. It'll be great, if you can answer it.