Raised This Month: $32 Target: $400
 8% 

Average damage per round.


Post New Thread Reply   
 
Thread Tools Display Modes
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 05-29-2012 , 11:29   Re: Average damage per round.
Reply With Quote #41

Quote:
Originally Posted by Exolent[jNr] View Post
Change this:
PHP Code:
$result mysql_query("SELECT *, (SELECT (COUNT(*) + 1) FROM sb_ranking WHERE points > (SELECT points FROM sb_ranking WHERE steamid = '" mysql_real_escape_string($steamid$link) . "')) AS rank FROM sb_ranking WHERE steamid = '" mysql_real_escape_string($steamid$link) . "';"$link); 
to this:
PHP Code:
$escaped_steamid mysql_real_escape_string($steamidlink);
$sql "SELECT *, ("
     
.     "SELECT (COUNT(*) + 1) FROM sb_ranking "
     
.     "WHERE (kills - deaths) > ("
     
.         "SELECT (kills - deaths) AS diff FROM sb_ranking "
     
.         "WHERE steamid = '" $escaped_steamid "') "
     
.     "OR ("
     
.         "((kills - deaths) = ("
     
.             "SELECT (kills - deaths) AS diff FROM sb_ranking "
     
.             "WHERE steamid = '" $escaped_steamid "')"
     
.         "AND kills > ("
     
.             "SELECT kills FROM sb_ranking WHERE steamid = '" $escaped_steamid "')"
     
.     ")"
     
") AS rank FROM sb_ranking WHERE steamid = '" $escaped_steamid "';";
$result mysql_query($sql$link); 
Thanks! I will try.
kramesa is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:19.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode