If i have a MYSQL table that sorts names and one table that sorts value.
Example this is how the table look like:
ID name value
-- ------ -----
1 John 500
2 Rock 350
3 Wayne 700
4 John 350
5 Rock 250
6 Nick 100
7 Sweety 75
8 Lex 350
How do i display the total value for eache user? and also if i want to filter it to only show top 3 is there an easy command for that? Or do i need to make some kind of function.
In PHP
John 850
Wayne 700
Rock 600
Lex 350
Nick 100
Sweety 75