but anyways going back to that script..
I made the donations table with fields (user, amount)
it now displays them in a list but it don't sort them or sum the amounts for each user and put them into a top 10.
also the total amount at the buttom don't work.
I have to change ORDER BY to GROUP BY or i got an error
Invalid SQL: SELECT `user`, `amount`, SUM(`amount`) AS `total` FROM `donation` ORDER BY `amount` DESC LIMIT 10 mysql error: Mixing of GROUP columns (MIN(),MAX(),COUNT()...) with no GROUP columns is illegal if there is no GROUP BY clause