I have just installed MySQL (yes, the server is running) on my WindowsXP machine.
I have tried about 30 different code samples for how to display results from a MySQL query and it just won't work.
Here is the most recent one I tried:
I have checked and root is the user, there is no password.
All I get is a Cannot Find Server or DNS error.
<html>
<head>
<title>Connect Server</title>
</head>
<body>
<?
$link = mysql_connect("localhost","root")or die("Connect Error: ".mysql_error());
print "Successfully connected.\n";
mysql_close($link);
?>
</body>
</html>
I am tearing my hair out over this...stayed up until 5am trying to get it to work.
Help would be appreciated.
Edit: Cleaned up the code display.