This question is an exact duplicate of:
<?php
$conn = odbc_connect("Driver={SQL Server Native Client 10.0}; Server=212.100.247.136; Database=kinley;", 'kinleyuser', 'kinley123@');
if (!$conn)
{
echo ('No');
}
else
{
echo ('yes');
}
?>
Kindly help with this. Problem in mssql and php connection for the first time