Good afternoon, I have a sqlserver database hosted in amazon, and I can not connect to php, is there any specific way of doing this?
I tried the connection this way:
<?php
$servername = "link do server";
$username = "usuario";
$password = "senha";
$conn = mysqli_connect($servername, $username, $password);
if (!$conn) {
die("Connection failed: " . mysqli_connect_error());
}
echo "Connected successfully";
?>