Hi there I am a complete newbie. I have installed mysql, php and apache onto my windows xp PC. I have created a simple login page for my site and have read that I am supposed to include the following piece of code into my html page and then save it as a .php page and the page should connect to my database or return an error message.
<html>
<head><title>Connect Server</title></head>
<body>
<?
$link = mysql_connect("localhost",$POST['username'],$POST['password'])or die("Connect Error: ".mysql_error());
print "Successfully connected.\n";
mysql_close($link);
?>
</body>
</html>
However when I include the code nothing happens, is there something else I have to do to connect the page to my database????
Please help this is driving me mad!!!!!!!
Thanks