<?php
session_start();
date_default_timezone_set('Europe/Amsterdam');
/**************************************/
// Configuration -> Bone GunZ //
/************************************/
// Settings to connect to the database. //
$_CONFIG['host'] = "RAINOPC;
$_CONFIG['user'] = "sa";
$_CONFIG['pass'] = "Bgunz";
$_CONFIG['dbn'] = "GunzBG";
// Site online/offline. 1 = on, 0 = off.
$_CONFIG['mode'] = 1;
$_CONFIG['modemsg'] = "<br /><br /><center>Website is currently turned off.</center>";
$con = mssql_connect($_CONFIG['host'], $_CONFIG['user'], $_CONFIG['pass']) or die("Failed to connect to the database!");
mssql_select_db($_CONFIG['dbn'], $con) or die("Failed to select the database!");
if($_CONFIG['mode'] == 0)
{
die($_CONFIG['modemsg']);
}
$host = "RAINOPC";
$user = "sa";
$pass = "bgunz";
$dbname = "GunzBG";
$connect = odbc_connect("Driver={SQL Server};Server={$host}; Database={$dbname}", $user, $pass) or die("Can't connect the MSSQL server.");
$emblemfolder = "emblem"; //Emblem folder for the emblem uploader.
$servername = "bone gunz"; //The title of the website.
$downloadlink = "http://multiupload.com"; //Download link for the navbar and side links.
$forumlink = "Http://forum.ragezone.com"; //Forum link for the navbar.
$votelink = "http://top200.top-site-list.com/vote380.html"; //Vote link for the navbar.
$matchserverport = 6000; //Leave it the way it is if you don't know what it is.
$matchagentport = 7777; //Leave it the way it is if you don't know what it is.
?>
please help me...
Hey i need help please i still get the Call to undefined mssql_connect error i did what you said still didnt work. im using xampp
@jeries
Use XAMPP and enable the php_mssql.dll extension.
@wayutok
Look at your $_CONFIG['host'] line.
$_CONFIG['host'] = "RAINOPC;
You forgot a " at the end.
$_CONFIG['host'] = "RAINOPC";
This website has to many minor errors.
Thanks guys, and thanks Dave for helping this fella while I wasn't here.
@CampingFaggot, where? simply reply here and I'll fix them if I had time.
@Jirachi, I gave a sample "includes/shop.php", few edits here and there and it should work using dbo.CashShop.
Oh thanks, I thought I had to find a different shop.php.
I have a bug
Notice: Undefined index: userid in ...\Gunz\includes\functions.php on line 296
Wait. I just looked back at this. First four words in your post are "I have a story."
...
Where in the name of pancakes is your story.
The story is the web, duh. Long time no see, Irvin.
It's your Apache server's configurations or the PHP.ini. Not the web's fault.
Undefined index PHP - Google
GOOGLE, MY FRIEND.
Last edited by Vusion; 11-01-12 at 05:06 PM.
How to execute the file SQL? and where? i am newbie
Last edited by Ryukrey; 30-10-11 at 01:36 AM.
What do i need exactly to edit in shop.php and make it work?