Thanks for the swift reply. I did as you suggested but with the same result. I then copied your code and replaced mine. It worked and I've done a little bit more testing and it seems to work up to implimenting the next phase which is MySql, PHP and IIS.
The issue seems to be a failure somewhere in the config of the system as a whole. I have followed the install guides for MySql and PHP, altered the PHP.INI for the connection to MySql (extension=php_mysql.dll, extension=php_mysqli.dll) but when running a downloaded piece of code called dbtest.php I get the same result as posted earlier. I've checked through the code to ensure the lines are terminated correctly, no missing quotes etc but I don't even get an error message after running. The code is below.
The only hint I get is when running the phpinfo() in a simple web page no reference is made to the MySql extensions.
Again, any help really appreciated.
Johno
<?php
// Establish a connection and select a database
$link = mysql_connect('localhost', 'phptest', 'phptest')
or die('Could not connect to the MySQL Server: ' . mysql_error());
mysql_select_db('mysql') or die('Could not Select the Database.<br><br>
The error returned by MySQL was: <br>' . mysql_error());
// Close the connection
mysql_close($link);
?>