php script is not getting connected to mysql db

Hi.. am a new to PHP scripting.

My php script is not getting connected to mysql db. Please help me!

i didn't get any errors in the output. may be the configuration issue. :wall:

my script is,

<?php
extension=php_mssql.dll
$username = "user";
$password = "pwd";
$hostname = "db.mysql"; 
$dbhandle = mysql_connect($hostname, $username, $password) 
if (!$dbhandle) {
    die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($dbhandle);
?>

Thanks in Advance

If you are using PHP version 5.3.x, php_mssql.dll is no longer supported. The replacement is php_sqlsrv.dll.

Am using the PHP version - 5.2.8
wamp server version is 1.6.1.33

hi.. can any one help me ?