View Single Post
Old 16th January 2012, 09:23
dme1409 dme1409 is offline
Junior Member
Join Date: Apr 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to dme1409
Default Php include files


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

Reply With Quote
Sponsored Links