$page = basename($_SERVER['SCRIPT_FILENAME']); $page = str_replace('_',' ',$page); $page = str_replace('.php','',$page); $page = ucfirst($page); $db = mysql_connect('samjewelry.netfirmsmysql.com', 'semleak', '!!!Diamond777') or die ('Unable to connect. Check your connection parameters.'); mysql_select_db('samjdb', $db) or die(mysql_error($db)); ?>