+ 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 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";
?>
+ 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.