I had created my connection script:
//definisi userconnection1 untuk koneksi utama
define ("_serverDB1", "localhost"); //host server
define ("_userDB1", "root"); //user dbase
define ("_passDB1", ""); //password dbase
define ("_DBname1", "dbase"); //dbase utama
and this is some connection functions:
function DB_CON1()
{
global $CON1;
@$CON1 = mysql_connect(_serverDB1,_userDB1,_passDB1) or die("Koneksi 1 Gagal !! $php_errormsg");
if ($CON1) @mysql_select_db(_DBname1) or die ("Error Select Database 1 !!");
return $CON1;
}
in WAMP server, the define of SERVER name is work. But after I upload to my another server like XAMPP, it doesn't work. the define of SERVER is Unknown.
What's goin on with this define name ... 😕
What the different between WAMP and XAMPP ... ?