Hi I have some problem with my PHP & MySQL.... I tried to connect with my database but it dispaly me this error: Fatal error: Call to undefined function mysql_connect() in c:\Inetpub\wwwroot\db.php on line 10
Here is my code... Kindly help me to figure out what is the problem..I'm new with the system..
<html>
<head>
<title>Test Connection</title>
</head>
<body>
<?php;
$user = "root";
$pass = "my password";
$db = "my database";
$link = mysql_connect("localhost",$user ,$pass);
if (! $link)
die("Couldn't connect to MySQL");
print "Successfully connected to server<p>";
mysql_select_db($db)
or die ("Couldn't open $db: ".mysql_error() );
print "Successfully selected database \"$db\"<p>";
mysql_close($link);
?>
</body>
</html>
Thanks a lot...