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

  • Home
  • SEARCH
  • 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 8902951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:44:41+00:00 2026-06-15T01:44:41+00:00

I am not necessarily looking for MySQL or PHP code. Rather I’m trying to

  • 0

I am not necessarily looking for MySQL or PHP code. Rather I’m trying to get a concept of how to set everything up.

I want to create a database using MySQL (and using PHP to update it) of all the books my family owns. I want to set up different ‘bookshelves’ for each person in my family so we can see who has a certain book.

My first thought was to have a table for all the titles, authors, etc and have a field for user id to show who had the book. However, I might have a copy of Hunger Games and my grandmother might have a copy of Hunger Games. I want to be able to show it on both bookshelves. The only way my idea would work is if we had no duplicate books.

My next idea was to use a different table for each user and have a field that contains the book id for each book the user owns. I think this would work on a small scale but it does not seem like an efficient design. I am planning on making the database public for everyone in my town to use (thousands of people) once I get a stable website going so I want to start off with the right kind of design.

How should this be designed?

  • 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-15T01:44:42+00:00Added an answer on June 15, 2026 at 1:44 am
    BOOK
    --------
    book_id
    title
    other_book_related_info
    
    PERSON
    -------
    person_id
    name
    other_person_info
    
    BOOK_PERSON
    -------------
    book_id
    person_id
    possibly-dates-when-this-person-owned-this-book
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im not necessarily asking for code but more the concept of how to achieve
I'm not necessarily looking for a better way to do this, rather an explanations
I am looking for some sort of tool which does not necessarily need to
I'm looking for an elegant way (in terms of syntax, not necessarily efficient) to
I know this will be a difficult question, so I am not necessarily looking
I'm looking for a web application to manage tasks (not necessary programming-oriented) for a
Is it true that this does not necessarily mean the stream has been disposed
I know that being open source does not necessarily makes a program more/less secure
I had someone mention to me that catching all exceptions is not necessarily good
I'd like to have a commit message cleanup that will not necessarily remove lines

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.