SQL connection with PHP

0

I have the following PHP, I'm using WAMP, and as in the image below, the dll's are active:

<?php$server="dblinx";
$connection = array("Database"=>"Linx", "UID"=>"root","PWD"=>"root");
$conn = sqlsrv_connect($server, $connection);

if ($conn) {
  echo "Connected!";
} else {
  echo "Connection failed<br>";
  die( print_r(sqlsrv_errors(),true));
}
?>

However, this always appears when I try to open the page:

Cananyonehelpme?

IalreadyaddedtheextensionsinPHP.ini

    
asked by anonymous 19.07.2018 / 20:01

1 answer

0

According to the Microsoft website you need to include it in php.ini as below.

extension = php_sqlsrv_72_ts.dll

Reference:

link

    
19.07.2018 / 21:56