CREATE TABLE category (
category_id int(11) NOT NULL auto_increment,
category_name varchar(100) NOT NULL default '',
PRIMARY KEY (category_id)
) TYPE=MyISAM AUTO_INCREMENT=81 ;
CREATE TABLE imageinfo (
imageinfo_id int(11) NOT NULL auto_increment,
imageinfo_name varchar(60) NOT NULL default '',
imageinfo_location varchar(60) NOT NULL default '',
imageinfo_title varchar(60) NOT NULL default '',
linkinfo_url varchar(100) NOT NULL default '',
show int(11) NOT NULL default '1',
PRIMARY KEY (imageinfo_id)
) TYPE=MyISAM AUTO_INCREMENT=688 ;
CREATE TABLE linkinfo (
linkinfo_id int(11) NOT NULL auto_increment,
linkinfo_url varchar(100) NOT NULL default '',
category_name varchar(100) NOT NULL default '0',
linkinfo_description text NOT NULL,
PRIMARY KEY (linkinfo_id)
) TYPE=MyISAM AUTO_INCREMENT=688 ;
INSERT INTO category VALUES (1, 'Accessories\n');
INSERT INTO linkinfo VALUES (1, 'http://www.qksrv.net/click-1171617-10293489', 'Accessories\n', 'eBags is the online leader for luggage, backpacks, handbags, briefcases, and accessories. With over 175 top brands, policies like 110% LOW PRICE GUARANTEES and FREE RETURNS, and various promotions such as Free Shipping - eBags is a consumer favorite. ');
INSERT INTO linkinfo VALUES (2, 'http://www.qksrv.net/click-1171617-39479', 'Accessories\n', 'Travel is the biggest category on the web. Why not get your share of it? ');
INSERT INTO linkinfo VALUES (3, 'http://www.qksrv.net/click-1171617-42177', 'Accessories\n', 'Maps.com is the premier online map store featuring over 3,500 maps, including travel maps, folded maps, wall maps, atlases, and even digital maps for web and desktop publishing. If you\re looking for a map, Maps.com has it. ');
INSERT INTO imageinfo VALUES (1, 'ebags.gif', 'images/', '', 'http://www.qksrv.net/click-1171617-10293489', 1);
INSERT INTO imageinfo VALUES (2, 'mts.gif', 'images/', '', 'http://www.qksrv.net/click-1171617-39479', 1);
INSERT INTO imageinfo VALUES (3, 'maps.gif', 'images/', '', 'http://www.qksrv.net/click-1171617-42177', 1);
tHIS RETURNS RESULTS BUT WITH the row that has ebags.gif repeats twice.