I have newly installed mysql saver on computer yesterday.

Code:
<?php
$con = mysql_connect("localhost","home","iagree");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

// some code

?>
But when I run a PHP file with this code I have been getting this error message
Code:
Fatal error: Call to undefined function mysql_connect() in I:\Inetpub\wwwroot\PHPTest\SQLTest.php on line 2
What is wrong on my code?