Hi
I am setting up a site for a printer retail outlet and am having difficulty working out the best method of setting up the MySQL database. The customer wants visitors to her site to be able to search for products by the printer make, printer type or by the correct cartridge name/code. Each printer has multiple cartridges that are compatible with it including some which are compatible with multiple printers. I am trying to avoid data replication and keep things within the database as small as possible. Some printers have up to 70+ compatible cartridges. I am wondering what is the best method of storing the compatability of each printer &/or cartridge/s but am not sure of the best method:
I need to be able to use the join statement to display the results and am not sure which mysql field type would be best for storing a sequence i.e. printer A is compatible 5,8,9, 15,23,24 while still being able use join and making a site search engine in a dynamic form:
>Epson Printer (list/menu)
>Printer Models (list/menu)
=Results
>Enter Printer / Cartridge Code in a Search Bar
=Results
Please can someone help - I am quite new to MySQL and this problem has been buggin' me for a weeks!
Cheers,
Seriform
I am setting up a site for a printer retail outlet and am having difficulty working out the best method of setting up the MySQL database. The customer wants visitors to her site to be able to search for products by the printer make, printer type or by the correct cartridge name/code. Each printer has multiple cartridges that are compatible with it including some which are compatible with multiple printers. I am trying to avoid data replication and keep things within the database as small as possible. Some printers have up to 70+ compatible cartridges. I am wondering what is the best method of storing the compatability of each printer &/or cartridge/s but am not sure of the best method:
I need to be able to use the join statement to display the results and am not sure which mysql field type would be best for storing a sequence i.e. printer A is compatible 5,8,9, 15,23,24 while still being able use join and making a site search engine in a dynamic form:
>Epson Printer (list/menu)
>Printer Models (list/menu)
=Results
>Enter Printer / Cartridge Code in a Search Bar
=Results
Please can someone help - I am quite new to MySQL and this problem has been buggin' me for a weeks!
Cheers,
Seriform