I am new to PHP and I am having some problem with includes and it's really getting on my nerves, so please help!!
when i try to include something like database password and stuff with php, it displace the passwords and stuff on the window and stops loading the rest of the code.
for example:
<?
include ("../blabla/bla.inc");
$dbh=mysql_connect ($host, $mysqluser, $password) or die ('I cannot connect to the database because: ' . mysql_error());
?>
And lets say the bla.inc has this:
$host = "host";
$mysqluser = "user";
$password = "password";
and my server DO support php, when the page loads to the include line, it includes the file, and it displays all the stuff there onto the browser, the stuff like $host = "host"; $mysqluser = "user"; $password = "password";, and then it wouldn't connect to the database as well, and the page is basically dead after that line, can anyone tell me if I am doing something wrong or how can I Fix this??? PLEASE!!!