here is the connection info from the main page... the index.php includes the other php files. i have changed the connection info as to not give out my login information. <?php $dbh=mysql_connect ("<IP of server>", "<admin login>", "<admin password>") or die ('I cannot connect to the database because: ' . mysql_error()); mysql_select_db ("main"); //Gets server vars if (!empty($_SERVER)) extract($_SERVER); //Gets get (query string) vars if (!empty($_GET)) { extract($_GET); } else if (!empty($HTTP_GET_VARS)) { extract($HTTP_GET_VARS); } //Gets post (form method=post) vars if (!empty($_POST)) { extract($_POST); } else if (!empty($HTTP_POST_VARS)) { extract($HTTP_POST_VARS); } $date = date("Y-m-d H:i:s"); ?>