From ce55733c3a8dcbde1beaf9540a2866516332b083 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=BCrth?= Date: Thu, 2 Apr 2020 18:52:54 +0200 Subject: [PATCH] Improve and modernize example --- .../php/Ubuntu/SqlServerSample/connect.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/samples/tutorials/php/Ubuntu/SqlServerSample/connect.php b/samples/tutorials/php/Ubuntu/SqlServerSample/connect.php index c19bec3c..cdf977ec 100644 --- a/samples/tutorials/php/Ubuntu/SqlServerSample/connect.php +++ b/samples/tutorials/php/Ubuntu/SqlServerSample/connect.php @@ -1,12 +1,14 @@ "SampleDB", "Uid" => "sa", "PWD" => "your_password" - ); - //Establishes the connection - $conn = sqlsrv_connect($serverName, $connectionOptions); - if($conn) - echo "Connected!" -?> \ No newline at end of file + ]; + + // Establish the connection + $connection = sqlsrv_connect($serverName, $connectionOptions); + if ($connection) { + echo "Connected!"; + }