Jump to content

PHP stats! Script help.


eevan79

Recommended Posts

Greeting,

 

I have a small script for a gaming site and need some help if possible. Script collect info from mysql database about players, killls, deaths and other stuff and all works. But I have some problems with sorting players list. I rewrited some code (mostly html and .css) and stuck with .php. I attached some files that need to be fixed.

 

In "allusers.php" is list of all players with some stats. But it only works if I click on "Show all players"...I can not make to arrange players list by pages (it's original code but not working).

 

Can this be fixed to show 50 (or 100 players) per page with page numbering (< 1 2 3 > )?

 

Thats original code but it use wrapping to show players list and its very impractical and looking bad.

 

This is link how it looks like: http://netsvet.com/dota/?p=allusers&s=name&o=asc&n=all

where "n" is page number. If i set it to 1 or 2 its not working...only "all".

 

Also, I want to show banned players (I attached bans.php) on players list. So this code need to be rewriten to check bans table and if it exists for that player name than display "banned" (or maybe use different collor background for that "block"; red instead yellow).

 

Maybe this is not simple, and I try to do this manual but always failed.

 

Thanks in advanced.

 

Regards,

Ivan

 

[attachment deleted by admin]

Link to comment
https://forums.phpfreaks.com/topic/164587-php-stats-script-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.