Voda: thanks for your help, I'm following tutorial as well and I think mi code is correct: This is my config_db.php: <? // Database configuration file config_db.php
$dbhost = 'localhost'; //server name localhost or 127.0.0.1
$dbuser = 'root'; //User name default root
$dbpass = 'root'; //Password default root -- I will be using ''fred123''
?> And this is open_db.php: <? // Open database open_db.php
include_once $_SERVER['DOCUMENT_ROOT'] . "/config_db.php";
$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die(mysql_error());
?> I get this error when executing open_db.php. I think everything is correct, it's the same code in the tutorial (except the include_once, but that's not failing :S). BobS: I've already tried that, I see no difference but that in the error message shows '127.0.0.1' instead of 'localhost' :S I'm running on Windows XP, I've already search this error in google but dind't find a solution. Thank you very much for your help. Best regards,