Created
October 3, 2015 19:53
-
-
Save mohanadkaleia/f1616d3ff7cecdf90fb9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$serverName = "MOHANA-LAPTOP\SQLEXPRESS"; | |
$connectionInfo = array("Database" => "test", "UID" => "sa", "PWD"=>"123456"); | |
$conn = sqlsrv_connect($serverName, $connectionInfo); | |
if($conn) { | |
echo "Connection established .. :)"; | |
} else { | |
echo "Connection could not be established :("; | |
dir(print_r(sqlsrv_errors(), true)); | |
} | |
?> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment