Vincent Posted July 28, 2013 Posted July 28, 2013 (edited) Hi, how can i create a list as Message out of Database. Like a Toplist. is there any standart script for those jobs? The DB strucur is: [char_id] [Points] Edited July 28, 2013 by Thor v2 Quote
Xynvaroth Posted July 28, 2013 Posted July 28, 2013 1. Delete the arrays you will use for query_sql( ). 2. Use query_sql( ) to get the datasets (order the result by `Points`). 3. Loop through the datasets using for( ). 4. For each dataset, select the character names from the `char` table and display both the names and the points. This will only work if you have less than 128 entries in the top list. See this suggestion if you want more than 128 entries. Quote
Question
Vincent
Hi,
how can i create a list as Message out of Database. Like a Toplist.
is there any standart script for those jobs?
The DB strucur is: [char_id] [Points]
Edited by Thor v22 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.