Connessione mysql


Connessione database mysql

Esempio di connessione ad un database mysql tramite php.

$servername = "servername";
$username = "user";
$password = "psw";
$conn = new mysqli($servername, $username, $password);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
echo "Connected successfully";


Commenti