I need some help. I am trying to learn MYSQL. I have read how to do relationships but I have come across something that I am lost on and need another opinion. Here is the existing table
CREATE TABLE tshirts (
id tinyint(4) NOT NULL auto_increment,
shirtname varchar(50) NOT NULL default '',
image varchar(50) NOT NULL default '',
description varchar(255) NOT NULL default '',
PRIMARY KEY (id)
) TYPE=MyISAM;
I want to add tshirt prices and sizes to this table. I have tshirts that have small, medium, large, XL, 2XL, 3XL, 4XL and each size has its own price. My problem I am dealing with is that not all designs are available in each size. How do I set this up to pull each size & price but also notify the user if the size isn't available?
Any coding examples would be great since I am going cross-eyed trying to figure this out.
thanks