Merge pull request #763 from ravage84/patch-1

Improve and modernize example
This commit is contained in:
Umachandar Jayachandran
2020-04-23 09:51:16 -07:00
committed by GitHub
@@ -1,12 +1,14 @@
<?php
// Setup the connection
$serverName = "localhost";
$connectionOptions = array(
$connectionOptions = [
"Database" => "SampleDB",
"Uid" => "sa",
"PWD" => "your_password"
);
//Establishes the connection
$conn = sqlsrv_connect($serverName, $connectionOptions);
if($conn)
echo "Connected!"
?>
];
// Establish the connection
$connection = sqlsrv_connect($serverName, $connectionOptions);
if ($connection) {
echo "Connected!";
}