Good morning I have a question, since I have a database in SQL SERVER 2014 and I am trying to establish a connection from PHP I already checked it and according to me my error is sending the IP address of the database server but I do not know if I'm missing anything. p>
<?php
$serverName = "1.1.1.1"; //serverName\instanceName
$connectionInfo = array( "Database"=>"Example", "UID"=>"sa", "PWD"=>"");
$conn = sqlsrv_connect( $serverName, $connectionInfo);
if( $conn ) {
echo "Conexión establecida satisfactoriamente.<br />";
}else{
echo "No se pudo establecer la conexion.<br />";
die( print_r( sqlsrv_errors(), true));
}
?>
The error you send me is this:
Fatal error: Call to undefined function sqlsrv_connect ()
Thanks again for your help.