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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:45:26+00:00 2026-06-10T12:45:26+00:00

I am creating a little online quiz/game. I have a users -table containing a

  • 0

I am creating a little online quiz/game. I have a users-table containing a unique auto-increment id, a username field, a password field and a ip field (from where it was created).

That handles the log in and stuff like that.

Then I need to track the users process. The user has to complete several tasks, or levels. However you wish to view it.

The requirements are the following, for each task:

  1. Keep track of how many attempts the user has done for a given task
  2. Keep track of his last attempt
  3. Keep track of where he failed
  4. Keep track of his shortest successful attempt
  5. Keep track of his most recent successful attempt.

What I am asking is basically how I should structure my tables for this to work as smooth as possible and require as little annoying SQL-queries and code as possible.

Should I have one table for each task with each row bound to a username and fields corresponding the list above? Or one large table with a row bound to the username that indicated which task and all the fields corresponding the list above?

I am not sure, which is why I am asking.

Worth mentioning: Anything I currently have is not set in stone, so I can change anything you want.

Any help and/or suggestions are much appreciated.

Thanks in advance.


EDIT:
I will also have one table with each task: tasks(id, name, description, finish_message)

And with that I need to have a new table structure for the tasks similar to the one I described above for the users and tasks, but for the tasks and tests.

  • 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-10T12:45:28+00:00Added an answer on June 10, 2026 at 12:45 pm

    I didn’t get your question completely, but I think following structure might help you:

        1. users(userid, username, password, ipaddress)
        2. tasks(taskid, task_description,...)--any other details you want
        3. task_attempted(userid, taskid, last_successful_attempt, shortest_successful_attempt, last_attempt, last_failed_testid);
        4. tests(testid, taskid, ...)--other details
    

    Please clarify your third requirement:

    Keep track of where he failed
    

    If I am not getting you wrong user might not be able to proceed to give next test of a task until she finishes current test successfully, so you can add one more field for test_id for keeping track of failed test_id in particular task.

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

Sidebar

Related Questions

I'm creating a little photo sharing site for our home's intranet, and I have
I am creating a little flash game for the facebook platform, but I am
I'm creating a little Java application which should have a progress indicator with percentages.
I'm creating a little game using Three.js and everything is going well apart from
I'm creating a little tic tac toe game and I generate the computer's move
I am creating a little TV guide for myself and I have a list
I am creating a little game client that will end up connecting to a
I am creating an little hobby database driven browser based game and I stumbled
I'm considering creating a little chatbot that learns from users, similar to Clever-Bot (but
I'm creating a little dynamic tooltip function. Basically if I have a link like

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.