Here is my php script
<?php
require ($_SERVER["DOCUMENT_ROOT"] . "/config/db_config.php");
$connection = mysql_connect($db_host, $db_user, $db_password) or die("Error Connecting");
echo "Connection Sucessful";
?>
When I run it my browser window is blank. If I comment out the $connection line then I get the words Connection Sucessful displayed in the browser. This appears to show that the php is working. It is only when I try to connect to the mysql server that I have the problem of a blank screen.
I am stuck, Please can anyone help me?. I am willing to email my php.ini or any other configuration filee if it helps.
thanks
<?php
require ($_SERVER["DOCUMENT_ROOT"] . "/config/db_config.php");
$connection = mysql_connect($db_host, $db_user, $db_password) or die("Error Connecting");
echo "Connection Sucessful";
?>
When I run it my browser window is blank. If I comment out the $connection line then I get the words Connection Sucessful displayed in the browser. This appears to show that the php is working. It is only when I try to connect to the mysql server that I have the problem of a blank screen.
I am stuck, Please can anyone help me?. I am willing to email my php.ini or any other configuration filee if it helps.
thanks