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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T06:54:48+00:00 2026-05-31T06:54:48+00:00

I have a database which people can log into to enter information. What I

  • 0

I have a database which people can log into to enter information. What I want is to use the same log in details so that the person can log in and review all the information they have entered into the database.

So basically I have one table with id, studentName , username and password

I then have a separate table called entry which stored the information which they enter with the fields
id, studentName, textfield1,textfield2, etc ….

So what I want is to write a mysql query which takes the person username from the login page, looks at the related studentName field in the users table and make use of this to fetch all records from the entry table where this name is present.

Is this possible?

Thanks in advance.

Regards
Matt

  • 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-31T06:54:49+00:00Added an answer on May 31, 2026 at 6:54 am

    in your entry table, add a reference to your students table via id (preferably id since it’s most likely unique if you use auto_increment)

    entry ( id, studentId, textfield1, textfiel2, ...)
    

    Then everytime you need to fetch, do something similar to

    SELECT * FROM entry where studentId = $loggedInUserId

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

Sidebar

Related Questions

I have a table in my database which has duplicate records that I want
I have a database in Access 2003 that I only want certain people to
I have a database which stores (among other things), the following pieces of information:
I want to use a graph database using php. Can you point out some
hopefully someone can help me with this odd problem. I have a database which
I have built a number of solutions in the past in which people enter
Hello people can someone help. I have designed a dialog in which I would
I have a database which I regularly need to import large amounts of data
I have a database which contains picture data stored as a binary blob. The
I have a database which needs to store year ranges (such as lifespan) which

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.