Jump to content

Query to pull member & member points together


jaymc

Recommended Posts

I have a member database and for each row in the database contains member information aswell as how many points a member has

 

I want to do a query to see How many members have more points than them which will inevertably give me there rank out of all the members

 

I was going to just structure a query to find all the members with > points than them and then use mysql_num_rows which would pick out there rank position

 

But to do  that Id first have to fetch there points so the entire operation will take 2 queries

 

Anyway to squeeze this into one query and is it best using my method of mysql num rows..

 

Thanks

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.