GunZ Rankings Page

Status
Not open for further replies.
Joined
Jan 5, 2007
Messages
652
Reaction score
7
!CLOSED ready for release..

Code:
The page looks like this.. 
(i know the screens are a bit blurry blame tinypic.. imageshack doesn't work here for some reason)

[IMG]https://forum.ragezone.com/images/404_image.png[/IMG]

[IMG]https://forum.ragezone.com/images/404_image.png[/IMG]

[IMG]https://forum.ragezone.com/images/404_image.png[/IMG]

Config file is inside the /includes/ folder

[B]Update - 7[/B]
- Fixed some error that caused names to show up wrong
[B]Update - 6[/B]
- Added userlegend (+ options for place and alignment) (idea from wesman2232)
[B]Update - 5[/B]
- Fixed some stupid mistake i made
- Updated comments in config.php
[B]Update - 4[/B]
- Updated Query's
- Added Name coloring (on request by wesman2232)
- Added setting to order by other fields (Mocro needed that)
[B]Update - 3[/B]
- Updated query
[B]Update - 2[/B]
- Fixed ratio
- Cleaned code a bit
- Changed mssql_functions.php
[B]Update - 1[/B]
- Fixed Query
 
Last edited:
Looks nice,
i get this error.
Code:
Warning: odbc_exec() [function.odbc-exec]: SQL error: [Microsoft][ODBC SQL Server Driver][SQL Server]Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression., SQL state 21000 in SQLExecDirect in C:\wamp\www\nlgunz\include\includes\odbc_functions.php on line 34

Warning: odbc_fetch_array(): supplied argument is not a valid ODBC result resource in C:\wamp\www\nlgunz\include\includes\odbc_functions.php on line 38
 
Updated the file with a new query (works here but i dont have a filled db)

Note : i know the code is a mess with all the $new and $tab..
will clean the code later
 
Replace

PHP:
mssql_select_db($dbname,$dbc);

With

PHP:
mssql_select_db($dbname);

Also, mssql_query does NOT need the connection function. You can use MSSQL the same way as MySQL, by using mssql_query("UPDATE xxx");. Same for the mssql_fetch_array.
 
Warning: Division by zero in C:\AppServ\www\GunZ\rank\includes\general_functions.php on line 34
:)
Now just to make this for Clans :)

Will fix some stuff later today got to go to school first

might make one for clans some other time


Edit
Updated first post with new rar
Edit
And again...
 
Last edited:
Warning: odbc_connect() [function.odbc-connect]: SQL error: [Microsoft][ODBC-stuurprogrammabeheer] De naam van de gegevensbron is niet gevonden en er is geen standaardstuurprogramma opgegeven, SQL state IM002 in SQLConnect in C:\AppServ\www\rank\includes\odbc_functions.php on line 31

Warning: odbc_exec(): supplied argument is not a valid ODBC-Link resource in C:\AppServ\www\rank\includes\odbc_functions.php on line 34

Warning: odbc_fetch_array(): supplied argument is not a valid ODBC result resource in C:\AppServ\www\rank\includes\odbc_functions.php on line 38

That was the ODBC error
&
This is the Mysql Error

Fatal error: Call to undefined function mssql_connect() in C:\AppServ\www\rank\includes\mssql_functions.php on line 31
 
Eele tested it on his server here are the results..
it has some strange blank names outputed tried to fix it
by adding a check for a null in a name field but that
doesent work...

if anyone knows why gunz has those rows with blank
usernames post the problem here so i will be able to
fix it..

oh and can someone please test the mssql connection

shadow-xx - GunZ Rankings Page - RaGEZONE Forums
 
Last edited:
Code:
Warning: odbc_exec() [function.odbc-exec]: SQL error: [Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near the keyword 'AND'., SQL state 37000 in SQLExecDirect in C:\AppServ\www\GunZ\rank\includes\odbc_functions.php on line 34

Warning: odbc_fetch_array(): supplied argument is not a valid ODBC result resource in C:\AppServ\www\GunZ\rank\includes\odbc_functions.php on line 38
EDIT : Nvm I fixed this, it was cause I deleted everything between the "s on the excluded characters line.
Hey can you make it so that the Admin's names are Green and the Dev's names are red?
 
Last edited:
Code:
Warning: odbc_exec() [function.odbc-exec]: SQL error: [Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near the keyword 'AND'., SQL state 37000 in SQLExecDirect in C:\AppServ\www\GunZ\rank\includes\odbc_functions.php on line 34

Warning: odbc_fetch_array(): supplied argument is not a valid ODBC result resource in C:\AppServ\www\GunZ\rank\includes\odbc_functions.php on line 38
EDIT : Nvm I fixed this, it was cause I deleted everything between the "s on the excluded characters line.
Hey can you make it so that the Admin's names are Green and the Dev's names are red?

Join the AID on the Account table, get the UGradeID with it.

Then if (ugradeid == 254) $color = "red"; else $color="black"; <font color='$color'>Charname</font>

Above code can not be used but it's a good clue.
 
Status
Not open for further replies.
Back