Hi Guys,
I have come into a little problem connecting to a database on my test server. I cannot see anything wrong with my scripting unless i have been looking at it too long.
Here is my code
There is definitly config/db.config.php and in there is definitly the following $db_host, $db_user, $db_pass.Code:<?php require("/config/db.config.php"); $connection = mysql_connect($db_host, $db_user, $db_pass) or die ("Error Connection"); echo "Connection Made"; ?>
The details are correct also but still not having any luck. The error i am getting is:
Warning: require(/config/db.config.php) [function.require]: failed to open stream: No such file or directory in C:\Program Files\xampp\htdocs\guestbook\index.php on line 2
Fatal error: require() [function.require]: Failed opening required '/config/db.config.php' (include_path='.;C:\Program Files\xampp\php\pear\') in C:\Program Files\xampp\htdocs\guestbook\index.php on line 2