Question
Data Issue
Hi,
I am doing a dynamic application for a company that sells printers. I am using MySQL and PHP. On the first page, I need to list each printer series and the features of the series. This is my problem - They had an internal database that has each printer listed in it, along with the printer series it belongs to and the features of each series - it is all in one table. So even if two printers belong to the same series, with same series features, it is repeated - no separate linked table for the series and its features.
This is what I cannot figure out. The printer item number is listed and each of the features has it's own column. So if a printer has a certain feature - it gets a "YES" in the database table. There are about 20 features that each printer item may or may not have. How do I write a record set that pulls up any features that has a "YES" for that series, but on the actual page print what the feature is? So if my printer item number 1000 has YES in the "doub_tray" column and "YES" in the "duplex" column, how do I get it to list:
FEATURES:
* DOUBLE TRAY
* DUPLEX PRINTING
on the actual web page? Will I have to have a separate recordset for each feature??
Thanks!
I am doing a dynamic application for a company that sells printers. I am using MySQL and PHP. On the first page, I need to list each printer series and the features of the series. This is my problem - They had an internal database that has each printer listed in it, along with the printer series it belongs to and the features of each series - it is all in one table. So even if two printers belong to the same series, with same series features, it is repeated - no separate linked table for the series and its features.
This is what I cannot figure out. The printer item number is listed and each of the features has it's own column. So if a printer has a certain feature - it gets a "YES" in the database table. There are about 20 features that each printer item may or may not have. How do I write a record set that pulls up any features that has a "YES" for that series, but on the actual page print what the feature is? So if my printer item number 1000 has YES in the "doub_tray" column and "YES" in the "duplex" column, how do I get it to list:
FEATURES:
* DOUBLE TRAY
* DUPLEX PRINTING
on the actual web page? Will I have to have a separate recordset for each feature??
Thanks!
