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 7190423
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:30:47+00:00 2026-05-28T19:30:47+00:00

am trying to build a point system which checks how much points a user

  • 0

am trying to build a point system which checks how much points a user have and gives a specific title to them.

I have prepared a table which the php script can refer to when checking which title should be given to a member.

MYSQL Table structure as follows:
name: ptb
structure: pts , title

For example , if you have 100 points , you gain the title – “Veteran” , if you have 500 points , you gain the title “Pro”. let’s say i have pts:100 , title:veteran and pts:500 , title:pro rows in the ptb table.

However i stumble upon a confusing fact.
How can i use php to determine which title to give the user by using the ptb table data?

If a user have equal or more than 100 points will gain Veteran for title BUT 500 is also MORE THAN 100 which means the php script also needs to make sure it is below 500pts .

I still not sure how to use php to do this. as i am confused myself.
I hope someone could understand and provide me some guidelines.

THANKS!

  • 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-28T19:30:48+00:00Added an answer on May 28, 2026 at 7:30 pm

    You select all records with enought points, sort the one with the highest score to the top and cut out the rest.

    SELECT title FROM ptb WHERE pts <= $points ORDER BY pts DESC LIMIT 1
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to build a system using jqgrid which does everything on the clientside,
I have a situation where I'm trying to build a web app which takes
I am trying to build a system the remembers the user's interactions with a
I'm trying build a method which returns the shortest path from one node to
Trying to build sslsniff on a RHEL 5.2 system here. When compiling sslsniff on
I am trying to build a basic plugin system like the kind you often
Im trying to build a simple faye realtime based notification system so I can
I'm trying to build a proof of concept Csla 3.7/Silverlight 3 app and have
I'm trying to build a simple help system to my software. The help system
I am currently trying to build a small system that read's in a bunch

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.