Jump to content

Database Question (Noob)


silverbadger

Recommended Posts

I've been working with MAMP on MAC and find it amazing. However I am now faced with designing a database for a client that looks like the following:

 

customer needs to:

 

see categories (eg plylining), then click on manufacturer (eg citroen), then vehicle (eg Citroen 96>02), then variation (short wheel/medium wheel etc) and see an image and description.

 

I am stumped as to how to set this database up.

 

Can someone please help :( Thanks in advance.

Link to comment
https://forums.phpfreaks.com/topic/133581-database-question-noob/
Share on other sites

Read up on database normalization:

http://dev.mysql.com/tech-resources/articles/intro-to-normalization.html

 

You will be looking at "one-to-many" and "many-to-many" relationships between data.

 

ie)Plylining could be manufactured by Citroen, and SomeOtherManuf, and AnotherManuf

Therefore, Plylining has a "one-to-many" relationship with the manufactures.

 

Graphically

[pre]

                  +-- Citroen

[plylining] -------+-- SomeOtherManuf

                  +-- AnotherManuf

[/pre]

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.