+ 1

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?

2nd Jun 2017, 9:43 AM
lohith mudragada
lohith mudragada - avatar
3 Réponses
+ 2
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"; ?>
3rd Jun 2017, 8:43 AM
Krzysztof Przybylowski
Krzysztof Przybylowski - avatar
+ 1
I'm sure you should first understand the meaning of commas, dots and question marks in your post.
2nd Jun 2017, 10:47 PM
Krzysztof Przybylowski
Krzysztof Przybylowski - avatar
0
nice answer bro. It'll be great, if you can answer it.
3rd Jun 2017, 4:35 AM
lohith mudragada
lohith mudragada - avatar