Need some help

facination

New Member
Messages
4
Reaction score
0
Points
0
Well, i have no idea how to make my php to work.
I kind of uploaded it but all i get is : Fatal error: Call to undefined function mssql_connect() in /home/wesley11/public_html/Home/secure/config.php on line 12

Ive bin on phpfreaks for this to and they said all i had to do is find a host that supports mysql.
And this one does, but how do i get it to connect with my own mysql??
 

AngusThermopyle

Active Member
Messages
319
Reaction score
52
Points
28
Well, i have no idea how to make my php to work.
I kind of uploaded it but all i get is : Fatal error: Call to undefined function mssql_connect() in /home/wesley11/public_html/Home/secure/config.php on line 12

It should be mysql_connect . Open config.php and edit line 12 to the correct function.
 

facination

New Member
Messages
4
Reaction score
0
Points
0
It should be mysql_connect . Open config.php and edit line 12 to the correct function.

Yea i actually already did that but i thought it maybe needed some extra or so.

Here's the script

Code:
<?

@session_start();

//MSSQL Server configuration

$_MSSQL[Host]               = "(My server name, found at login screen of mysql )";
$_MSSQL[User]               = "sa";
$_MSSQL[Pass]               = "(Just my pw)";
$_MSSQL[DBNa]               = "GunzDB";

$r = mssql_connect($_MSSQL[Host], $_MSSQL[User], $_MSSQL[Pass]) or die("Cant connect to database");
mssql_select_db($_MSSQL[DBNa], $r);

// Here you set the language for the panel
// If you set this to english, the panel will try to load lang/english.php
$_CONFIG[Language]  = "english";

// Gunz Database Configuration
$_CONFIG[AccountTable]  = "Account";
$_CONFIG[LoginTable]    = "Login";
$_CONFIG[CharTable]     = "Character";
$_CONFIG[CItemTable]    = "CharacterItem";
$_CONFIG[AItemTable]    = "AccountItem";
$_CONFIG[ClanTable]     = "Clan";
$_CONFIG[ClanMembTable] = "ClanMember";
$_CONFIG[ClanLogTable]  = "ClanGameLog";

// Plugins Configuration
// To Disable, set the variable to 0
// To Enable, set the variable to 1

$_CONFIG[CountryBlock]  = 0;        // Add functions to Block / Unblock access to your GunZ Server

//MySQL Server configuration

$_MYSQL[Host]               = "(Same)";
$_MYSQL[User]               = "sa";
$_MYSQL[Pass]               = "(Same)";
$_MYSQL[DBNa]               = "forum";

//Configuration

$_CONFIG[NewsFID]           = 4;
$_CONFIG[EventsFID]         = 6;
$_CONFIG[vBulletinPrefix]   = "iEntertainment - gunz";
$_CONFIG[ForumURL]          = "http://ient-gunz.forummotion.com/";

//Offline page
$_CONFIG[OfflinePage]       = "";

// Gunz Database Configuration
$_CONFIG[LoginTable]    = "Login";
$_CONFIG[CharTable]     = "Character";
$_CONFIG[ClanTable]    = "Clan";
$_CONFIG[ClanmemberTable]    = "ClanMember";
$color[255] = array(255,153,51); // Administrator
$color[254] = array(255,153,51); // Developer/Gamemaster
$color[253] = array(255,255,255); // Banned
$color[252] = array(255,153,51); // Hidden GM
$color[2]   = array(0,68,255); // User With Jjang
$color[0]   = array(255,255,255); // Normal User

// Here you set the language for the panel
// If you set this to english, the panel will try to load lang/english.php
$_CONFIG[Language]  = "english";

// Gunz Database Configuration
$_CONFIG[LoginTable]    = "Login";
$_CONFIG[CharTable]     = "Character";
$_CONFIG[ClanTable]    = "Clan";
$_CONFIG[ClanmemberTable]    = "ClanMember";


?>
 

techairlines

x10 Flyer
Community Support
Messages
2,867
Reaction score
165
Points
63
Your script has references to MSSQL, which is another form of SQL from Microsoft for Windows servers.

The following is the only thing I see for MySQL:

Code:
//MySQL Server configuration

$_MYSQL[Host]               = "(Same)";
$_MYSQL[User]               = "sa";
$_MYSQL[Pass]               = "(Same)";
$_MYSQL[DBNa]               = "forum";

Your error has been triggered by the MSSQL parts as MSSql is not supported here. We use Linux servers.
 

facination

New Member
Messages
4
Reaction score
0
Points
0
Your script has references to MSSQL, which is another form of SQL from Microsoft for Windows servers.

The following is the only thing I see for MySQL:

Code:
//MySQL Server configuration

$_MYSQL[Host]               = "(Same)";
$_MYSQL[User]               = "sa";
$_MYSQL[Pass]               = "(Same)";
$_MYSQL[DBNa]               = "forum";
Your error has been triggered by the MSSQL parts as MSSql is not supported here. We use Linux servers.

In other words..., it'll never work on here?
 

vishal

-::-X10 Guru-::-
Community Support
Messages
5,255
Reaction score
192
Points
63
**Moved to programming help ***
 
Top