I have a table in mysql.There I am storing user payment.Now I want to order the data by desc on average payment.How can I do this?
It is very simple in mysql.
<?php SELECT AVG(payment) as avg_payment FROM `table_name` ORDER BY avg_payment DESC. ?>
That’s all.
Username
Password
Remember Me
Lost your password?
Username or E-mail:
Log in