Wonder if anyone can help me create my join table and what I need to modify for the other tables. Here are the current table schemas, i have just done a dump of each.
Here is my category table:
CREATE TABLE `categories` (
`cat_id` int(11) NOT NULL auto_increment,
`category` varchar(128) NOT NULL,
PRIMARY KEY (`cat_id`)
) ENGINE=MyISAM AUTO_INCREMENT=34 DEFAULT CHARSET=utf8 AUTO_INCREMENT=34 ;
Here is my product table:
CREATE TABLE `products` (
`prod_id` int(11) NOT NULL,
`product_title` varchar(255) NOT NULL,
`product_description` tinytext NOT NULL,
`standard_price` decimal(10,2) NOT NULL default '0.00',
`deluxe_price` decimal(10,2) NOT NULL default '0.00'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
I am unsure how I create the third table to associate the products with the relevant categories.