i have above 4 pages and two table in my databse
Database: dd
table category
CREATE TABLE IF NOT EXISTS category
(
cat_id
int(2) NOT NULL AUTO_INCREMENT,
category
varchar(25) NOT NULL DEFAULT ‘’,
PRIMARY KEY (cat_id
)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;
table category
INSERT INTO category
(cat_id
, category
) VALUES
(1, ‘Fruits’),
(2, ‘Colors’),
(3, ‘Games’),
(4, ‘Vehicles’);
table subcategory
CREATE TABLE IF NOT EXISTS subcategory
(
cat_id
int(2) NOT NULL DEFAULT ‘0’,
subcategory
varchar(25) NOT NULL DEFAULT ‘’,
price
int(100) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
table subcategory
INSERT INTO subcategory
(cat_id
, subcategory
, price
) VALUES
(1, ‘Apple’, 0),
(2, ‘Red’, 20),
(3, ‘Cricket’, 30),
(4, ‘Cars’, 40);