![]() |
|
#1
|
|||
|
|||
ArraysHi, I will give you the code I have first and then ask the question
PHP Code:
My database is like this picture: http://mysober.co.uk/SQL.jpg What I want to do is create a rankings page with the person with the highest reputation ranked first and then going down the ranks with decreasing reputation. All I seem to be able to get is the same person listed every time with the code above. Where should I as the $i in to make it display all the ranks? So far where ever i put it I get errors. Is there a better way to do this? Thanks, Andrew __________________
Andrew |
|
#2
|
||||
|
||||
|
$rank_data is not an array, Andrew. It's a MySQL resource link identifier (usually named $result).
__________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#3
|
|||
|
|||
|
Quote:
Thanks, I think I understand what you mean. It is sorted now. I asked the people on another website aswell and they solved my problem __________________
Andrew |
Recent GIDBlog
Last Week of IA Training by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Extra null element in an array | samtediou | MySQL / PHP Forum | 2 | 11-Dec-2003 11:52 |
| arrays in c | wolfgangaz | C Programming Language | 1 | 26-Oct-2003 04:52 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The