Jump to content

Recommended Posts

I'm a bit rusty in the database department and would appreciate a quick review and any pointers.

I'm planning to set up a database for a DJ (that colloquially spins records).

The DJ does work with multiple organizations. Each organization sponsors several events per year. Each event has a separate 'playlist' depending on the audience.

From this skeletal overview, I'm thinking that I should establish a primary key/foreign key relationship (to avoid future complication?).

I'm certain that referencing an auto increment ID as the foreign key associated with the 180 character organization name will save valuable disk space, but how do I reference it when I'm adding a new event that the XYZ org is sponsoring?

Any other refresher pointers appreciated.

Link to comment
https://forums.phpfreaks.com/topic/329872-database-structure-refresher/
Share on other sites

11 hours ago, phppup said:

but how do I reference it when I'm adding a new event that the XYZ org is sponsoring?

Your form for entering new events would contain a dropdown listing organisations for the user to choose. The value of each dropdown option would br the organisation's id. This id is posted (with the other event data) for insertion into the event resord.

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.