Sir,
I am using wamp 3.0 having php 5.6.15
SQLSERVER 2008 is installed on Windows 7 32bit.
I want to connect sqlserver with php, So I put required drives in Bin folder as
and made some necessary changes in php.ini as
Finally I have this connection string
<?php
$host="SERVER";
$username="sa";
$password="123456";
$db_name="at17";
$con=sqlsrv_connect($host, $username, $password,$db_name);
if(!$con){
die ('<script type="text/javascript">alert("Error Connecting to host")'. mysqli_connect_error($con).'</script>');
}
else
{
//echo( '<script type="text/javascript">alert("Connected")</script>');
}
?>
But it displays this error message
What I am doing wrong?
Please help me