Hi,
I just picked up a PHP book today and for some reason I can't connect to the MySQL database in my site. I tried to retrieve some rows in a table but it didn't work. I think it might be the connection to the database first of all that isn't right. Anyway, this is another code that simply connects to the database. I can't seem to get the output to appear and get proper connection. Most likely the coding is wrong. Thanks in advance for your help.
Vance
<?php
$linkID = mysql_connect("www.domain.com", "", "");
if ($linkID !=FALSE)
{
print "The connection to the server was made successfully.";
}
else
{
print "The connection to the server failed.";
}
mysql_close($linkID);
?>