Website stupid sql error >.<!!!!!!!!!!!!!!!!!!! HELP ME OUT PLZ !
well heres what i get
Fatal error: Call to undefined function mssql_connect() in C:\AppServ\www\blueweb\include\config.php on line 18
heres the config.php
Code:
<?php
session_start();
require('class_sqlfunctions.php');
/**********************************
| @author SuperWaffle. |
| Fill in the correct info below. |
*********************************/
class connect
{
var $host = "MYNAME\SQLEXPRESS"; // Host, usually PCNAME\SQLEXPRESS
var $user = "sa"; // Username is usually empty.
var $pass = "*******"; // Password is usually empty.
var $dbn = "GunzDB"; // Database name is most likely GunzDB.
public function __construct()
{
$con = mssql_connect($this->host, $this->user, $this->pass) or die("<center><font color='red'>Failed to connect to the database!</font></center>");
LINE 18 i gues.. >>>>> mssql_select_db($this->dbn, $con) or die("<center><font color='red'>Failed to select the database!</font></center>");
}
}
new connect();
/*** The name of your server.
This will show up in the title and on every page H1. ***/
$gunzname = "CGunZ";
/*** Location of your emblem folder.
Example: http://gunz.com/emblem = emblem ***/
$emblemfolder = "emblem";
/*** Define the account name(s) of the admin(s) here, seperate with ,"this"
Those will have access to the manage updates, manage events, item shop and IP Ban functions. ***/
$admins = array("acc0", "acc1", "acc2", "acc3");
?>
Re: Website stupid sql error >.<!!!!!!!!!!!!!!!!!!! HELP ME OUT PLZ !
Did you read the F.A.Q on the website release page?
F.A.Q:
Q: I'm getting the error: "Fatal error: Call to undefined function mssql_connect()".
A: Enable the php_mssql.dll extension in your php.ini. Remove the ; in front of the line and restart your Apache.
Re: Website stupid sql error >.<!!!!!!!!!!!!!!!!!!! HELP ME OUT PLZ !
Quote:
Originally Posted by
SuperWaffle
Did you read the F.A.Q on the website release page?
F.A.Q:
Q: I'm getting the error: "Fatal error: Call to undefined function mssql_connect()".
A: Enable the php_mssql.dll extension in your php.ini. Remove the ; in front of the line and restart your Apache.
my appserve doesent have php.ini :O
Re: Website stupid sql error >.<!!!!!!!!!!!!!!!!!!! HELP ME OUT PLZ !
lol i know error...
var $host = "MYNAME\SQLEXPRESS"; // Host, usually PCNAME\SQLEXPRESS
var $user = "sa"; // Username is usually empty.
var $pass = "*******"; // Password is usually empty.
var $dbn = "GunzDB"; // Database name is most likely GunzDB.
FIXED:
var $host = "MYNAME"; // Host, usually PCNAME\SQLEXPRESS
var $user = "sa"; // Username is usually empty.
var $pass = "*******"; // Password is usually empty.
var $dbn = "GunzDB"; // Database name is most likely GunzDB.
if you compute rname is MYNAME u need delete \SQLEXPRESS, believe me that is the error !
Re: Website stupid sql error >.<!!!!!!!!!!!!!!!!!!! HELP ME OUT PLZ !
Quote:
Originally Posted by
Beeldscherm
lol i know error...
var $host = "MYNAME\SQLEXPRESS"; // Host, usually PCNAME\SQLEXPRESS
var $user = "sa"; // Username is usually empty.
var $pass = "*******"; // Password is usually empty.
var $dbn = "GunzDB"; // Database name is most likely GunzDB.
FIXED:
var $host = "MYNAME"; // Host, usually PCNAME\SQLEXPRESS
var $user = "sa"; // Username is usually empty.
var $pass = "*******"; // Password is usually empty.
var $dbn = "GunzDB"; // Database name is most likely GunzDB.
if you compute rname is MYNAME u need delete \SQLEXPRESS, believe me that is the error !
no offence , but wtf is this shit.The server's name depends about how you installed mssql. To get it , open up mssql and copy the server's name.
I'll repeat what SuperWaffle said but with more details.
Open up start , run, type php.ini and hit enter.
Search for mssql,remove the ; at the beginning of the line then restart apache.
Re: Website stupid sql error >.<!!!!!!!!!!!!!!!!!!! HELP ME OUT PLZ !
Cmone ppl!!!!!!!!!!!! Need this fix, its everywhere, searched, no fix :(!!
can some1 on msn help me out plz....
or something!
1 Attachment(s)
Re: Website stupid sql error >.<!!!!!!!!!!!!!!!!!!! HELP ME OUT PLZ !
Quote:
Originally Posted by
Vusion
no offence , but wtf is this shit.The server's name depends about how you installed mssql. To get it , open up mssql and copy the server's name.
I'll repeat what SuperWaffle said but with more details.
Open up start , run, type php.ini and hit enter.
Search for mssql,remove the ; at the beginning of the line then restart apache.
it is true,
have seen this before.
But,
did u replace the ntwdblib in the php folder?
if no.
atachment has download for the ntwdblib
Re: Website stupid sql error >.<!!!!!!!!!!!!!!!!!!! HELP ME OUT PLZ !
AppServ has php.ini it should be installed in the Windows/System32 folder
Re: Website stupid sql error >.<!!!!!!!!!!!!!!!!!!! HELP ME OUT PLZ !
Quote:
Originally Posted by
wesman2232
AppServ has php.ini it should be installed in the Windows/System32 folder
superwaffles scripts require the modified ntwdblib.
atleast it worked for me
Re: Website stupid sql error >.<!!!!!!!!!!!!!!!!!!! HELP ME OUT PLZ !
People that this do work upload you Xammp/Wamp and give it?
Re: Website stupid sql error >.<!!!!!!!!!!!!!!!!!!! HELP ME OUT PLZ !
Damn i get that two when i use that web .
Re: Website stupid sql error >.<!!!!!!!!!!!!!!!!!!! HELP ME OUT PLZ !
only edit the php.ini then display_errors = on change it into display_errors = off
its easy
Re: Website stupid sql error >.<!!!!!!!!!!!!!!!!!!! HELP ME OUT PLZ !
Wow!! He needs to solve the sql connection issue, in order to do that, you need to turn on the error display... why in the hell you want to turn it off.
Think before you post.
Re: Website stupid sql error >.<!!!!!!!!!!!!!!!!!!! HELP ME OUT PLZ !
Quote:
Originally Posted by
jur13n
superwaffles scripts require the modified ntwdblib.
atleast it worked for me
Modified? It's just a .dll from a older version to support the function.
@OP: Go find my unofficial fix thread.