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
|
Recent comments
1 day 1 hour ago
1 day 1 hour ago
1 day 6 hours ago
1 day 13 hours ago
1 day 14 hours ago
1 day 15 hours ago
1 day 19 hours ago
2 days 2 hours ago
2 days 6 hours ago
2 days 8 hours ago