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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:42:23+00:00 2026-06-11T03:42:23+00:00

I Have 3 Fields In Database Total_Points Earned_Point Progress Lets Say There’s A Game

  • 0

I Have 3 Fields In Database

Total_Points 
Earned_Point
Progress

Lets Say There’s A Game

I Got 800 Point From 1000

Total_Points = 1000
Earned_Point = 800
Progress = 80%

I Counted The Progress (( 80% )) Manually

How Can I Count It Automatically With PHP ?

To Get The % Automatically ?

  • 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-06-11T03:42:25+00:00Added an answer on June 11, 2026 at 3:42 am

    For that first you need to fetch this from database and than you can do calculation and store in the database

    for calculating use this

    (Earned_Point * 100) / Total_Points
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My problem is that the database fields have been badly designed by previous people
I'm using CakePHP 2.1 I have following fields in database. id views max_views I
In my database we have fields where the data is not readable. I now
i have some fields in my database table,and a field with phone name ,
In a database, I have fields for scoring users. They are as following: id
I have two nvarchar fields in a database to store the DataType and DefaultValue,
I have DateFirstStarted and DateEnded fields in the database. Date values are recorded as
I have a foreach function which permits me to print fields in a database,
I have a Database with this fields: Firstname, Lastname, picture. I have a gtk.Label
I have a database full of text fields that look like this: (paragraph of

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.