Created
February 22, 2019 19:26
-
-
Save steppat/dcbbb828efaec152e9bbe460ab2d2634 to your computer and use it in GitHub Desktop.
Teste conexao PHP MySQL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo "Testando conexao <br /> <br />"; | |
$servername = "192.168.1.24"; | |
$username = "phpuser"; | |
$password = "pass"; | |
// Create connection | |
$conn = new mysqli($servername, $username, $password); | |
// Check connection | |
if ($conn->connect_error) { | |
die("Conexão falhou: " . $conn->connect_error); | |
} | |
echo "Connetado com sucesso"; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment