I have some trouble with the following piece of code ::
<?php
$link = mysql_connect("xyz.server.com", "login", "pwd")
or die("Could not connect");
print ("Connected successfully");
mysql_close($link);
?>
This works perfectly with php3, however it gives me the following error when using it with php4 ::
Warning: Unknown MySQL Server Host 'xyz.server.com' (25) in /home/whatever/php/test.php4 on line 2
Does anyone know what I'm doing wrong here? And better yet, does anyone want to clue in this newbie?