here is the db-connect file and the constants file that is called within it. cheers for the help
//db_connect.php
<?php
include ('constants.inc');
$connection = mysql_connect($GLOBALS['host'],$GLOBALS['user'],$GLOBALS['pass']) or die ("couldn't connect to server");
$db = mysql_select_db ($GLOBALS['db_name'], $connection) or die ("Unable to select the database");
?>
//constants.inc
<?php
$GLOBALS['db_name'] = 'dhstshop';
$GLOBALS['host'] = 'localhost';
$GLOBALS['user'] = 'root';
$GLOBALS['pass'] = '*********';
$GLOBALS['thumbw'] = 100; //The Width Of The Thumbnails
$GLOBALS['thumbh'] = 75; //The Height Of The Thumbnails
$GLOBALS['imagepath'] = "/shop/admin/images/"; //Path To Place Where Images Are Uploaded. No Trailing Slash
$GLOBALS['thumbpath'] = "/shop/admin/images/thumbs/"; //Path To Place Where Thumbnails Are Uploaded. No Trailing Slash
?>