![]() |
Sergey Kornilov admin 9/17/2010 |
You cannot sort your data by value set in PHP code. |
S
|
Scruffy author 9/18/2010 |
You cannot sort your data by value set in PHP code. The best approach here is to perform calculations in SQL Query. Check MySQL functions IF(), CASE() and IFNULL(): http://dev.mysql.com/doc/refman/5.0/en/control-flow-functions.html#function_ifnull
|