Jump to content

Fatal error


wesley1189

Recommended Posts

This is seriously driving me nuts....

I got wamp running and evrything is up, apache, php5 and mysql.

And my site is done, it should work.

I even tried a site from someone else.

I uploaded at http://members.000webhost.com/login.php

Where my html page is to, ( html works fine with me ).

At my own php page it said this Fatal error: Call to undefined function mssql_connect() in /home/a6083143/public_html/Website2/config.php  on line 15

 

And on the one i've got from someone else

 

Fatal error: Call to undefined function mssql_connect() in /home/a6083143/public_html/home/secure/config.php  on line 12

 

My site config

<?php
     ////////////////
//            //
   //   Connect  //
  //   Database //
//            //
//////////////// 


$_MSSQL[Host]      = "(my host name on sql)";
$_MSSQL[user]      = "sa";
$_MSSQL[Pass]      = "(PW of sql)";
$_MSSQL[DBNa]      = "GunzDB";

$r = mssql_connect($_MSSQL[Host], $_MSSQL[user], $_MSSQL[Pass]) or die("Cant Connect Database");
mssql_select_db($_MSSQL[DBNa], $r);

?>

 

And from someone else

 

$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]               = "(my sql hostname)";
$_MYSQL[user]               = "sa";
$_MYSQL[Pass]               = "(Mysql PW)";
$_MYSQL[DBNa]               = "forum";

//Configuration

$_CONFIG[NewsFID]           = 4;
$_CONFIG[EventsFID]         = 6;
$_CONFIG[vBulletinPrefix]   = "";
$_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";


?>

 

I hope you guy's can help me because all i get of it is frustration...

I've tried like evrything i could find on google and what i thought could help.

Link to comment
Share on other sites

wesley1189,

 

Run:

 


<?php

    phpinfo();

?>

 

and see if mssql is listed as supported envrionment...

 

If not, go into your WAMP Manager and add mssql, then restart WAMP.

 

Let us know...

 

Scot L. Diddle, Richmond VA

Link to comment
Share on other sites

I've tried like evrything i could find on google and what i thought could help.

 

From the manual, i.e. php.net

 

In the documentation for the mssql functions:

 

Requirements (http://us2.php.net/manual/en/mssql.requirements.php)

Requirements for Win32 platforms.

 

The extension requires the MS SQL Client Tools to be installed on the system where PHP is installed. The Client Tools can be installed from the MS SQL Server CD or by copying ntwdblib.dll from \winnt\system32 on the server to \winnt\system32 on the PHP box. Copying ntwdblib.dll will only provide access through named pipes. Configuration of the client will require installation of all the tools.

 

Requirements for Unix/Linux platforms.

 

To use the MSSQL extension on Unix/Linux, you first need to build and install the FreeTDS library. Source code and installation instructions are available at the FreeTDS home page: » http://www.freetds.org/

 

Installation (http://us2.php.net/manual/en/mssql.installation.php)

The MSSQL extension is enabled by adding extension=php_mssql.dll to php.ini.

 

To get these functions to work, you have to compile PHP with --with-mssql[=DIR], where DIR is the FreeTDS install prefix. And FreeTDS should be compiled using --enable-msdblib.

Link to comment
Share on other sites

Thanks that i got such a fast help ^.^, you guy's are the best !!.

Ive looked in them all and the biggest problem was that that site didn't had mysql, big rookie mistake but okay.

So i've been looking around and came on this  http://x10hosting.com/ it does have mysql .

And  i saw i could make an mysql database on forum, but how do i link that to my own database?

 

And again thanks guy's , you guy's are great.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.