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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T02:48:25+00:00 2026-06-05T02:48:25+00:00

So me and my colleague have been assigned for making a library database as

  • 0

So me and my colleague have been assigned for making a library database as the lesson’s assignement and then make an html database interface where someone would be able to perform certain tasks within the database such as inserting rows, deleting rows, finding rows etc.

We have created the database, imported it and all that but the problem is in inserting elements into it.

Well for example the books table has a many-to-many relationship with the authors table (where primary keys of each table are the ISBN and the authors ID respectively) so when we want to insert a book with it’s authors in our DB we don’t know exactly how to do it because they are in different tables. We are confused as to how we would put data from a single form in multiple tables with different primary keys.

We have been trying to find examples like that but to no avail.

Even links to tutorials and whatnot are mostly welcome.

Server side code is PHP.

Thank you very much.

  • 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-05T02:48:26+00:00Added an answer on June 5, 2026 at 2:48 am

    I have some suggestions for you,

    1. use drop down box for subject names and populate it thru Subject table ,so you could only select subject name which are in the DB.

    2. Upon entering the book details (all most all the values in the table and plus subject name),manually insert ISBN into Authors table.

    3. On the book user interface also use dropdownbox for publisher name (as many people don’t remember publisher code) ,then on postback you might pivk value publisher code from value =”??”.
      <select>
      <option value="Code1234">Sams Publisher</option>
      </select>

    4. If you add the Editor form of Author ,Publisher , Book and subject in the same page it would be too much fields for the user to enter and he might get confused ,but as it’s just a homework you can ignore this point and try your best to manage them on one page.

    Sample Library DB:
    enter image description here
    Source:

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

Sidebar

Related Questions

My colleague and I have been having a discussion about what Collections should be
I have been looking at CROSS / OUTER APPLY with a colleague and we're
I have been told by my colleague that void foo(int** p) is used like
A colleague of mine and I have been discussing how to declare variables in
A colleague and I have been partnered on a project for school, in which
I have always been religiously using SGI's Standard Template Library Programmer's Guide (STLPG) as
I have a colleague who has been using PHP's mysql_pconnect() without my knowing it.
I have been giving some huge command line tool from a colleague. The main
I have been reviewing an asp.net application that was written by a former colleague.
I have been asked to extract info by an academic colleague from a website

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.