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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T16:48:13+00:00 2026-06-03T16:48:13+00:00

I have a User database table that has the following fields, Id Username Password

  • 0

I have a User database table that has the following fields,

Id
Username
Password
Status_id

A status table consists of just an Id and title field, that has values of Pending, On Hold, Active and Completed.

When the status is changed to Pending, I want to record in a separate table the id of the admin who changed the user to this status, date_changed(datetime) and the reason(text) for them being pending.

When On Hold, I want to know the reason(text) why, the date / time they went on hold and the time they will become off hold.

For Completed I’d like to know the final_grade(int) they got, any comments(text) and filename of an attached file.

This causes me a headache due to the many status types and i’m wondering what database design is best to suit for this?

I’m using a PHP Form to change the status value if anyone is wondering, then i’d input the values appropriate dependant on the chosen value.

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-06-03T16:48:16+00:00Added an answer on June 3, 2026 at 4:48 pm

    In the end, I used Doctrine Inheritance mapping which solved my problem

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a database structure that has a Person table which contains fields such
I have a table in my database called Task. Task has the following fields:
I have a user Sql Authentication account that has remote access to my database
I have a form that has all the fields pulled dynamic from a database
I have 3 tables in a MySql Database: User; Company that has a date
I have one table called: Transaction. This table has the following fields: (ID,ProductName,Amount,Date) placed
I have a database table where the user marks files to be downloaded. Subsequently,
I have two tables in my database: user and media_contact . The media_contact table
I have a user that enters a piece of data into my database and
I have a MySQL database that has a few very simple tables. I would

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.