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

The Archive Base Latest Questions

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

I am new and trying to make a simple website for a project. I

  • 0

I am new and trying to make a simple website for a project. I have to pages, add and view hobbies. User needs to be able to add 1 or more hobbies and store it in a database and to retrieve it in another page, i have listed what i plan to do below.

How do i make it such that I am able to store multiple hobbies for users in the database?

Using MySQL, HTML, PHP, Dreamweaver

Assume: User has been created, user has been logged in and all user related database coding has been done. More than 1 user exists, all users are to have a few hobbies each.

Database
User table: UserId, Username, HobbyId
Hobby table: HobbyId, HobbyName, HobbyDaysAWeek

1 user can have 0 or more Hobbies.

Add hobby page

  • dropdownlist (binds list of hobbies from hobby table)
  • textbox (for user to enter how many days a week he spends engaging in that hobby)
  • add button (displays value in dropdownlist and textbox in a table)
  • table (Hobby and daysAWeek will be shown here, with a delete icon to delete it)
  • submit button(saves hobby & days a week & username into database)

View hobby page

  • Displays user’s hobby & days a week in a table.

Thanks for helping! And please provide simple and bare minimum coding as i am new!

  • 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-16T01:15:04+00:00Added an answer on June 16, 2026 at 1:15 am

    Well, nobody posted an answer but my question was answered in the comments so..

    Start by adding a 3rd table with UserId and HobbyId – Dagon

    You’re storing the relationship between, not a relationship. So think of it like you have two things and you want to remember that they relate. Thus, a table with two columns, one with an identifier of one part, the other with identifier (ID) of the other part. Pull them together with the data about each part, you have information. Hence, you’ve stored the relationship. It’s like metadata, really. It’s usually pretty efficient. – Jared Farrish

    Thanks guys!

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

Sidebar

Related Questions

I'm fairly new to PHP and have been trying to make a simple login
I am fairly new to iOS development and trying make a simple app which
I am trying to make a simple program that could open a new activity
I'm new to C++ and trying to make two simple functions, but something goes
I am trying to make a simple twitter client in C. I'm new at
new to c#. I'm trying to make a simple system where I can search
New to batch files, first try actually. Trying to make a simple batch file
I'm new to iPhone programming, and I'm trying to make a simple program without
I'm new to JSP and netbeans, I'm trying to make a simple communication between
I'm terribly new to web development. I'm trying to make a pretty simple site

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.