category table
id name date duration
1 aaa 12/12/07 1
2 bbb 10/10/08 1
.........
user_table
id name date
1 aaa 12/12/07
2 bbb 10/10/08
.......
rating table
id user_id name rating date
1 7 aaa 4 12/12/07
2 8 bbb 3 10/10/08
write now i am displaying these user in order of rating ...i.e high rating first display...
if rating match then with date i.e minimum date....
so it display like...
aaa 4 12/12/07
bbb 3 10/10/08
ccc 3 11/10/08
ddd 2 11/09/08
.....
i want show after 1 week
ddd 2 11/09/08
aaa 4 12/12/07
bbb 3 10/10/08
ccc 3 11/10/08 .....
again after 1 week
ccc 3 11/10/08
ddd 2 11/09/08
aaa 4 12/12/07
bbb 3 10/10/08
How to do this???