phppup Posted 14 hours ago Share Posted 14 hours ago 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. Quote Link to comment https://forums.phpfreaks.com/topic/329872-database-structure-refresher/ Share on other sites More sharing options...
Barand Posted 3 hours ago Share Posted 3 hours ago 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. Quote Link to comment https://forums.phpfreaks.com/topic/329872-database-structure-refresher/#findComment-1657221 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.