?
Path : /home/admin/public_html/old/download/db/ |
Current File : /home/admin/public_html/old/download/db/db_connect.php |
<?php //db connect. //remote hosting @ i-adtime.com /*date_default_timezone_set("Asia/Bangkok"); define('DB_HOST','localhost'); define('DB_USER','usystours_db'); define('DB_PASS','vchadmin'); define('DB_NAME','usystours_cms');*/ //remote hosting @ ns1.proen.co.th:8443/ //date_default_timezone_set("Asia/Bangkok"); define('DB_HOST','localhost'); define('DB_USER','softcreate_tour'); define('DB_PASS','savage'); define('DB_NAME','softcreate_tour'); //localhost test site /*date_default_timezone_set("Asia/Bangkok"); define('DB_HOST','localhost'); define('DB_USER','root'); define('DB_PASS','2n219124n9'); define('DB_NAME','usys');*/ $dbc = mysql_connect(DB_HOST,DB_USER,DB_PASS) or die(mysql_error($dbc)); @mysql_select_db(DB_NAME); @mysql_query("SET NAMES UTF8"); /*mysql_query("SET character_set_results=utf8"); mysql_query("SET character_set_client=utf8"); mysql_query("SET character_set_connection='utf8'"); mysql_query("SET character_set_database=utf8"); mysql_query("SET character_set_server='utf8'"); mysql_query("SET character_set_client='utf8'"); mysql_query("collation_connection = utf8_unicode_ci"); mysql_query("collation_database = utf8_unicode_ci"); mysql_query("collation_server = utf8_unicode_ci");*/ ?>