Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6323181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:28:11+00:00 2026-05-24T16:28:11+00:00

While working with a fine young man from SO last night, I got a

  • 0

While working with a fine young man from SO last night, I got a great deal of work done on an attendance system for a friend’s guild, and now it’s all done except for one part.

We made a lot of progress, but the friend that I’m helping had one last request. On each user’s page, we would output how many raids the user had been to and missed, but we also output the percent of raids that would be.

Example:

 Date                   Member                Attended
 8/10/2011 1:44:27pm    Testing1234           Yes
 8/10/2011 1:44:45pm    Testing1234           Yes
 8/10/2011 1:44:53pm    Testing1234           No

                    Overall Attendance: 66.666666667%

The way that we compute the percent on each page is done like this (at the time of the user lookup):

 $total_query= mysql_query("SELECT rAttend, rTotal FROM users WHERE userName='$v_member'");
    $result = mysql_fetch_assoc($total_query);
    $percent = $result['rTotal'] == 0 ? 0 : (($result['rAttend'] / $result['rTotal']) * 100);

The friend now wants me to make a new table where I have each member ($v_member) sorted on a page by their raid attendance percentage. I am a bit lost on how to do this, in a way that wouldn’t be manual. Can someone help me out with at least a place to start on this?

Thanks a lot!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T16:28:12+00:00Added an answer on May 24, 2026 at 4:28 pm
    SELECT userName, rAttend, rTotal, 100 * (rAttend / rTotal) as rAverage
    FROM users
    ORDER BY rAverage
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While working on an existing project I suddenly got the following error when trying
Everything was working fine while the database of my asp.net mvc 2 site was
Hi I am tring to import data from excel to sql 2005 .working fine
I have omnicppcomplete working fine except once in a while it won't complete some
I have SQL server 2008 and it was working fine ,but today while starting
I got a video element on a page that's working fine both in safari
We've been using mercurial for a while now and everything is working fine. The
I had this working fine while using toggle, but I need to make these
My site has working fine for a while but today its shows this database
I am using Junit 4. My whole program is working fine. I am trying

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.