How can I get MySQL to search a specific column/field in a a table? I have a small site that sells CDs. on every page is a text field and a drop down menu that allows users to search the site. but i want them to be able to choose a catagory from the drop down menu (which would be individual columns..) such as Artist, Album Title, Genre.. etc.. Here is my table..
CREATE TABLE tblProduct(
prodID int(11) not null auto_increment,
artist varchar(250),
albumTitle(250),
genre(100),
PRIMARY KEY (prodID)
);
What is the proper syntax (if any) in MySQL to do what I'm trying to do?
Thanks in Advance!
CREATE TABLE tblProduct(
prodID int(11) not null auto_increment,
artist varchar(250),
albumTitle(250),
genre(100),
PRIMARY KEY (prodID)
);
What is the proper syntax (if any) in MySQL to do what I'm trying to do?
Thanks in Advance!