The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
![]()
Use this code:
PHP Code:
|
#12
|
|||
|
|||
![]()
I think that will work great... i haven't tried yet.
Will that order the users from 1-10 by total amount of user then sum the total of all of them at the buttom? btw thanks for the code ![]() |
#13
|
|||
|
|||
![]()
nope didn't work giving this error
Invalid SQL: SELECT `user`, `amount`, SUM(`amount`) AS `total` FROM `donation` ORDER BY `amount` DESC LIMIT 10 mysql error: Table 'forum.donation' doesn't exist i have the amount in the user table under field amount? |
#14
|
|||
|
|||
![]()
I thought you already had the donation table created...
|
#15
|
|||
|
|||
![]()
no i just have a field under the table user called amount which is where I put the amount of the donation.
? |
#16
|
||||
|
||||
![]()
Umm the archive hack of which the structure for was taken from my hack. Anyways
|
#17
|
||||
|
||||
![]()
Any hoo, though I am 100% sure it was you, you posted this thread to get help, so it doesn't matter anyways.
|
#18
|
|||
|
|||
![]()
I never did a file achieve hack...i think you are thinking of someone else ?
|
#19
|
|||
|
|||
![]()
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 ![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|