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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:07:54+00:00 2026-06-13T13:07:54+00:00

I am currently working with PHP and MySQL database. I am currently building a

  • 0

I am currently working with PHP and MySQL database. I am currently building a course catalog page for my department. I have set up a table named Courses . I am running into an issue with the rest of the structure for my database table. There are classes that are taught during the fall and others during the spring. Also, among those classes, there are some that are taught every other year. I want to build a table which then I can use with PHP to automatically update according to the semester and scholarly year. More specifically, I would like to show the courses name, description, and if it’s either offered on the fall or semester of that year. Any course not offered that year will not show in the page.

How would I properly structure my table to fit the requirements mentioned above?

Example (Course number, Class name):

3210 Musical Theatre Styles I (Fall)
3220 Musical Theatre Styles II (Spring)
4500 Musical Theatre Showcase (Fall of year 2014)
  • 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-13T13:07:55+00:00Added an answer on June 13, 2026 at 1:07 pm

    I would create one table describing the courses, include course code, name and every other relevant information, then create another table linking those courses to when they will be taught.

    Example of courses

    id serial
    course_code text
    description text
    

    Example of plan

    id serial
    course_id serial
    year date
    semester (look at @Mahmoud Gamals answer)
    

    So a poulated database could contain the following:

    Table courses

    id course_code description
    1  INF1000     "Basic programming"
    2  INF1001     "More basic programming"
    

    Table course_dates (0 for spring 1 for fall)

    id course_id year semester
    1  1         2012 0
    2  1         2013 1
    3  2         2013 1
    

    This way, you separate the dates when the couses are taught from the info on the course.

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

Sidebar

Related Questions

I am working in PHP/MySQL. I have a table in my database called hourly
I am currently building an ecommerce site with PHP/MySQL. Recently, I have been working
I'm currently working on a PHP application that uses a MySQL database for its
I currently have a PHP file which will search my MySQL database and see
I am currently working on a small sponsorship application(PHP/MySql) for my personal blog, and
We currently have a working php mail script, this works fine and as we
I'm currently working on an OO PHP application. I have a class called validation
I am working with multiple databases in a PHP/MySQL application. I have development, testing,
I am currently working on a building community website in PHP. This contains forms
I am currently working on a php/javascript project which retrieves information from a database

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.