+ 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?
3 Answers
+ 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";
?>
+ 1
I'm sure you should first understand the meaning of commas, dots and question marks in your post.
0
nice answer bro. It'll be great, if you can answer it.