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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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