$cfg['hostname'] = "www.server.com"; // Server domain or ip address $cfg['username'] = "username"; // Database user name $cfg['password'] = "password"; // Database password $cfg['bugemail'] = "[EMAIL PROTECTED]";
The do something like this:
function database_connection() { @mysql_connect($cfg[hostname],$cfg[username],$cfg[password]); @mysql_select_database($cfg[database]); }
Is there something special I have to do to get variables out of an array for use here? I have used $user = "name"; and called stuff like @mysql_connect($name); and it has worked before, I think I am missing something here.
TIA Jas
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php