Stil not working
Please see below Ray
. I have entered the full URLK but srill this will not connect. Here is the code from the Connections file
<?php
# FileName="WADYN_CONN.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_Cumberland = "localhost";
$database_Cumberland = "cumberland";
$username_Cumberland = "root";
$password_Cumberland = "author";
@session_start();
$foundConnection = false;
if ($foundConnection == false) {
$domains = explode(",","http://www.cumberlandpackaging.co.uk");
for ($domindex = 0; $domindex<sizeof($domains) && !$foundConnection; $domindex++) {
$domainCheck = trim($domains[$domindex]);
if (strpos(strtolower($_SERVER["SERVER_NAME"]),strtolower($domainCheck)) !== false && ($domainCheck == "" || strpos(strtolower($_SERVER["SERVER_NAME"]),strtolower($domainCheck)) == strlen($_SERVER["SERVER_NAME"])-strlen($domainCheck))) {
$hostname_Cumberland = "localhost";
$database_Cumberland = "cumberland";
$username_Cumberland = "cumberland";
$password_Cumberland = "author";
$foundConnection = true;
}
}
}
$Cumberland = mysql_pconnect($hostname_Cumberland, $username_Cumberland, $password_Cumberland) or trigger_error(mysql_error(),E_USER_ERROR);
?>
Please can you tell me why this doesnt work. I only want to be able to connect with
user name: root locally
user name : cumberland on the live server
Thanks


