Jump to content

Using Months As Its Own Table?


ctyler69

Recommended Posts

Hello All,

I am new to the forum and I would like to ask a question. Any advice would be appreciated.

 

I work for a monthly advertising publication In Michigan. I am in the process of creating an application to stream line our business. I have a very good idea how to do this with the exception of entering contracts. When someone signs up they can run in our publication for as many months as they want and they do not have to be concurrent. When these are being entered, whoever is entering needs to be able to select months. Would it be best to set up a table for Months? Would there be a better way to do this?

 

This is actually a very complex application that I have been working on and to tell you the truth I am a little befuddled that I am stuck on this seemingly simple dilemma. Any help, queries, theories or suggestions would be most appreciated. :confused:

Link to comment
Share on other sites

Hi

 

While there are ways around (for a start you could just use an array of months in php) it I would be tempted to just have a table of months and use that. I presume you have a table of adverts and a table linking those adverts to when they are run with a field for the month and year(so multiple rows per advert on the link table, one per year month).

 

All the best

 

Keith

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.