hi, guys
i want to show the top 5 refferer user from my sql table.
table has following thing.
database name- users
total table-3
table name-id,ref,name
here:
id=user id
ref=the user id of that user who is reffered this user
name=username
following is the entry in above 3 tables
1,0,abc
2,1,def
3,1,ghi
4,2,jkl
5,1,mno
6,2,pqr
7,1,stv
8,5,uwx
9,8,xyz
10,8,aaa
according to above table i want to show this
abc=4
def=2
uwx=2
mno=1
plz help in dis
i want to show the top 5 refferer user from my sql table.
table has following thing.
database name- users
total table-3
table name-id,ref,name
here:
id=user id
ref=the user id of that user who is reffered this user
name=username
following is the entry in above 3 tables
1,0,abc
2,1,def
3,1,ghi
4,2,jkl
5,1,mno
6,2,pqr
7,1,stv
8,5,uwx
9,8,xyz
10,8,aaa
according to above table i want to show this
abc=4
def=2
uwx=2
mno=1
plz help in dis
Comment