AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Off-Topic (https://forums.alliedmods.net/forumdisplay.php?f=15)
-   -   Order by help (https://forums.alliedmods.net/showthread.php?t=185017)

kramesa 05-11-2012 23:29

Order by help
 
How I can make this order?

PHP Code:

mysql_query('SELECT * FROM table ORDER BY '.round($a['dmg'] / max($a['wins'] + $a['losses'], 1)).' DESC'); 


Exolent[jNr] 05-11-2012 23:46

Re: Order by help
 
Show the table structure.

kramesa 05-11-2012 23:50

Re: Order by help
 
Quote:

Originally Posted by Exolent[jNr] (Post 1707156)
Show the table structure.

http://forums.alliedmods.net/showpos...24&postcount=4

Exolent[jNr] 05-12-2012 14:18

Re: Order by help
 
PHP Code:

mysql_query('SELECT * FROM table ORDER BY (dmg / (wins + losses)) DESC'); 



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

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