I am also having this problem. I did not see an official resolution to this, thats why I'm posting on it.
setup:
winxp pro
apache 2.0.58
php 5.1.4
both files are in the htdocs folder
php display_errors is on
these are just the test pages...
index.php
<?php
include ('db_login.php');
$connection = mysql_connect($db_host, $db_username, $db_password) or
die ("Could not connect to the database: <br />". mysql_error());
echo "if you are reading this, you are connected!";
?>
db_login.php
<?php
$db_host = 'localhost';
$db_database = 'test';
$db_username = 'root';
$db_password = 'asdf';
<?
so with this current configuration, it returns a blank page
if I change the url from "db_login.php" to something non-existant, just for testing (like 1234.php), it says:
Could not connect to the database:
Access denied for user 'ODBC'@'localhost' (using password: NO)
if I erase the include() function all together, and set the variables within this document accordingly, it works.. and returns "if you are reading this, you are connected!"
what is going on? any help is appreciated!