Php include files
Hi
if i use include ("include/db_connect.php");
and my include/db_connect.php file looks like this .
<?
$connection = mysql_connect("localhost", "mysqluser", "mysqlpassword") or die ("Couldn't connect to the server");
$db = mysql_select_db("mysqldb", $connection) or die ("Couldn't select database");
?>
<?
My page return the following
Access denied for user 'mysqluser'@'localhost' (using password: NO)
However if I add the contentent to the php file itself it does work.
any ideas
c
|