i have not see anyone realy helped with this one. but after what i have seen you need:
In versjon 5.3 of PHP was the support for php_mssql.dll removed. This uses mssql_connect() that all php files out here uses. PHP and microsoft recomend is "Microsoft Drivers for PHP for SQL Server".
yea but stuff is, my php skills are lets say on the bad side. so if anyone could make the odbc or the new microsoft thingy that would be great. all have mssql connect that not many can use making servers ahead. so the odbc or the new will be much more used ahed in time..
like online players, ress players,Statistics, top players. top pvp and so on..
I cant get the mssql function to properly work with ISS7. I get this error.
Fatal error: Call to undefined function mssql_query() in C:\inetpub\wwwroot\rank.php on line 17
its not an error in the code its that the PHP extension havent been installed properly or something. But I am trying and it doesnt seem to work nomatter what I try. Anyone have experience with this?
sorry but that dont help lol I already use ODBC to connect to the sql but I have no idea how I can get quries to work so I cant make a top players list and etc.
I am completly new with PHP.
edit: I have used way to much time trying to get this to work but atleast I know now that its because mssql doesnt work with my version of PHP
I have to ask though can you please tell me how I make this script work without mssql_functions. I only found a few I could replace. I really hope you can help cos this is making me tear my hair out lol.
PHP Code:
<?php //here you must to replace data with your $server = '127.0.0.1'; $dbuser = 'Shaiya'; $dbpass = 'Shaiya123'; $count=1; $rimg=0; $cimg=0; $kdr=0; $topcount=100;//joker's remake : variable "$topcount" defined rows (1~N) in the table of top(N) players.
//connection with database $conn = mssql_connect($server, $dbuser, $dbpass) or die("Couldn't connect to SQL Server on $myServer");
$query = "SELECT c.CharID,c.CharName,c.K1,c.K2,c.Job,c.Level,umg.Country FROM PS_GameData.dbo.Chars c INNER JOIN PS_UserData.dbo.Users_Master um ON c.useruid=um.useruid INNER JOIN PS_GameData.dbo.UserMaxGrow umg ON umg.UserUID=c.UserUID WHERE um.status=0 AND c.Del=0 ORDER BY c.k1 DESC"; $result = mssql_query($query);
sorry but that dont help lol I already use ODBC to connect to the sql but I have no idea how I can get quries to work so I cant make a top players list and etc.
I am completly new with PHP.
edit: I have used way to much time trying to get this to work but atleast I know now that its because mssql doesnt work with my version of PHP
I have to ask though can you please tell me how I make this script work without mssql_functions. I only found a few I could replace. I really hope you can help cos this is making me tear my hair out lol.
PHP Code:
<?php //here you must to replace data with your $server = '127.0.0.1'; $dbuser = 'Shaiya'; $dbpass = 'Shaiya123'; $count=1; $rimg=0; $cimg=0; $kdr=0; $MaxRank = 100;
//connection with database $conn = @odbc_connect("Driver={SQL Server};Server=$server;", $dbuser, $dbpass) or die("Database Connection Error!");;
$query = "SELECT TOP ".$MaxRank." c.CharName,c.K1,c.K2,c.Job,c.Level,umg.Country FROM PS_GameData.dbo.Chars c INNER JOIN PS_UserData.dbo.Users_Master um ON c.useruid=um.useruid INNER JOIN PS_GameData.dbo.UserMaxGrow umg ON umg.UserUID=c.UserUID WHERE um.status=0 AND c.Del=0 ORDER BY c.k1 DESC"; $result = odbc_exec($conn, $query);
MSSQL-connect Problem 07/02/2011 - Flyff Private Server - 0 Replies Ich versuche seit einer Stunde Treachery CS-Shop zum laufen zu kriegen, aber ich schaffe es einfach nicht das PHP sich endlich mal meinem Willen beugt und sich mit meiner DB verbindet...
Ich gebe in die config.php datei brav meine Daten ein, allerdings will es trotzdem nicht klappen...
http://img18.imageshack.us/img18/2105/mssql.png
http://img220.imageshack.us/img220/8788/configr.p ng
http://img31.imageshack.us/img31/7397/resultata.p ng
Wäre echt nett, wenn mir jemand einen Tipp geben...
[NOTICE] Unable to connect to MSSQL server using XAMPP 12/06/2010 - Dekaron Private Server - 0 Replies Hi,
i would like to notice that if you use XAMPP and install Apache as Service
it happened to me for some reason
Error:
you might have a ERROR "Unable to connect to server ..."
if you try to load a page that contains a mssql connection
This seems to happen on XAMPP for windows 1.7.3
[Helping Topic] 24/7 Helping Services! 08/27/2008 - EO PServer Hosting - 31 Replies stucked on anything while setuping your server?
post your problem here and you will get answer as fast as possible better than spamming with posts :cool:
first of all try reading Ahmedpotop's Pserver All thing guide.
if your couldn't solve it out post your problem down here
""That includes PHP rankings pages / registrations pages / Status pages""