PHP/MySql rankning!|Programmering / Grafisk formgivning|Forum|Nordichardware

Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
The forums are currently locked and only available for read only access
sp_Feed sp_TopicIcon
PHP/MySql rankning!
Kerobob
Siktar mot toppen
Medlem
Forum Posts: 68
Member Since:
September 27, 2001
sp_UserOfflineSmall Offline
1
January 22, 2002 - 8:00 pm
sp_Permalink sp_Print

Skulle vilja veta hur man listar saker i ordning. Tex jag har en db med 100 användare som har olika poäng. Hur skulle man kunna lista dom 10 med högst poäng i ordning? Hur gör jag?

jonas_10
Kommer du hit ofta?
Medlem
Forum Posts: 806
Member Since:
December 19, 2000
sp_UserOfflineSmall Offline
136542
January 23, 2002 - 10:56 am
sp_Permalink sp_Print

SELECT * FROM tabellnamn order by point DESC LIMIT 0, 10

Där point är den du vill sortera efter...
_________________
Hmmm....

[ Detta Inlägg ändrades av: JonaS den 2002-01-23 11:57 ]

Kerobob
Siktar mot toppen
Medlem
Forum Posts: 68
Member Since:
September 27, 2001
sp_UserOfflineSmall Offline
136876
January 24, 2002 - 8:52 am
sp_Permalink sp_Print

Tackar det funkar fint fint!
smile

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1030
Currently Online:
Guest(s) 431
Currently Browsing this Page:
2 Guest(s)
Top Posters:
Andreas Galistel: 16287
Jonas Klar: 15897
ilg@dd: 10810
Nyhet: 10607
Mind: 10550
Ctrl: 10355
Gueno: 9881
Guest: 9344
Snorch: 8881
Callister: 8468
Newest Members:
PetrbonFU PetrbonFU
Karine Bembry
Dolores Mcdaniels
Anibal McLeish
Francisca Alt
Alfie Everhart
Lester Huitt
Orlando Jorgensen
Mikki Lundgren
Dakota Kozlowski
Forum Stats:
Groups: 11
Forums: 59
Topics: 146630
Posts: 1300967

 

Member Stats:
Guest Posters: 2
Members: 79425
Moderators: 0
Admins: 11
Administrators: nordicadmin, Henrik Berntsson, Anton Karmehed, Carl Holmberg, Joel Oscarsson, Mikael Linnér, Mikael Schwartz, Andreas Paulsson, Nickebjrk, Mattias Pettersson, EmxL