Tryag File Manager
Home
-
Turbo Force
Current Path :
/
home
/
cluster1
/
data
/
bu01
/
1121861
/
html
/
jlex
/
php4
/
Upload File :
New :
File
Dir
/home/cluster1/data/bu01/1121861/html/jlex/php4/db_connection.php4
<? $server = trim(getenv("SERVER_NAME")); if(($server == "127.0.0.1") || ($server == "")){ $HOST = "localhost"; $USER = ""; $PASSWORD = ""; $DATABASE = "10832_balsas_nahuatlorg"; } else if($server = "www.balsas-nahuatl.org") { $HOST = "mysql1.myregisteredsite.com"; $USER = "10832_user1121861"; $PASSWORD = "pcw6zmeqhy"; $DATABASE = "10832_balsas_nahuatlorg"; } $db = mysql_pconnect($HOST, $USER, $PASSWORD); if(!$db) { echo "Error: Could not connect to database. Please try again later."; exit; } mysql_select_db($DATABASE); ?>