Hi,
I’ve got the following two pure php files:
config.php:
[code]
<?php
$dbhost = ‘localhost’;
$dbuser = ‘root’;
$dbpass = ‘password’;
$dbname = ‘cats’;
?>
opendb.php:
[code]
<?php
$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die (“Error connecting to mysql”);
mysql_select_db($dbname) or die (‘Could not connect to database’);
?>
I also have another page called index.php. It contains a bunch of html, and then:
[code]
<?php
include “config.php”;
include “opendb.php”;
further php commands;
?>
Including opendb makes the entire webpage show up blank in my browser. If anybody has any ideas why this is, I would be very grateful. ?