|
mysql_connect resulting in blank web page
I recently purchased "build your own databased driven web site using PHP and MYSQL" and have been working though the exercises.
using PHP 5.0.4
mYSQL 4.1.11
from command line mysql appears to do everything that it should ie create dB, INSERT values etc when logged in under root user
Php is intact that is from phpinfo(); and a basic date script provides correct server date time
However the following script is resulting in a blank firefox web page with no error explanation at all
<?php
$link = mysql_connect ('localhost', 'mysql_user', 'mysql_password');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'connected successfully';
mysql_close($link);
?>
This is straight out of the PHP MYSQL CONNECT MANUAL
I can see no error in the httpd/error-log
Hence I am at a real loss to explain what is wrong
Any help would be appreciated
|