Re: [PHP-DB] MYSQL row position.. is it possible (urgent)

2005-03-06 Thread Tatang Widyanto
how about : SELECT (count( b.unique_id ) + 1) ranking FROM table_name a, table_name b WHERE a.unique_id = '4' AND b.score a.score Mike wrote: Let's say I have a database and I want to find the position of a row when it is ordered by a specific column before a sort: UNIQUE ID | SCORE

[PHP-DB] MYSQL row position.. is it possible (urgent)

2005-03-04 Thread Mike
Let's say I have a database and I want to find the position of a row when it is ordered by a specific column before a sort: UNIQUE ID | SCORE 1 | 100 2 | 50 3 | 30 4 | 80 5 | 50 after sort: UNIQUE ID | SCORE 1 | 100 4 |