Grouping does not work correctly. I am getting duplicate groups.
Here is the code, as used in CodeIgniter:
<?php
/*
* Please put this file in the same folder with KoolControls folder
* or you may modify path of require and scriptFolder to refer correctly
* to koolgrid.php and its folder.
*/
$this->load->helper('url');
$ABSOLUTE_PATH_TO_ASSETS = FCPATH . "assets/";
$URL_TO_ASSETS = "http://127.0.0.1/ci/assets/";
//$URL_FOR_SCRIPTS = $this->input->server('SERVER_ADDR') . "/ci/assets/";
require $ABSOLUTE_PATH_TO_ASSETS."KoolControls/KoolGrid/koolgrid.php";
require $ABSOLUTE_PATH_TO_ASSETS."KoolControls/KoolAjax/koolajax.php";
require $ABSOLUTE_PATH_TO_ASSETS."KoolControls/KoolGrid/ext/datasources/PDODataSource.php";
$koolajax->scriptFolder = $URL_TO_ASSETS . "KoolControls/KoolAjax";
$ds_products = new ArrayDataSource($products);
$grid_products = new KoolGrid("grid_products");
$grid_products->scriptFolder = $URL_TO_ASSETS . "KoolControls/KoolGrid";
$grid_products->DataSource = $ds_products;
$grid_products->Localization->Load($ABSOLUTE_PATH_TO_ASSETS."KoolControls/KoolGrid/localization/de.xml");
$grid_products->styleFolder = "default";
$grid_products->Width = "600px";
$grid_products->Height = "300px";
$grid_products->PageSize = 25;
$grid_products->AjaxEnabled = true;
$grid_products->KeepRowStateOnRefresh = true;
$grid_products->AllowScrolling = true;
$column = new GridBoundColumn();
$column->DataField = "productName";
$column->HeaderText = "Produktname";
$column->Width = "45%";
$grid_products->MasterTable->AddColumn($column);
$column = new GridBoundColumn();
$column->DataField = "productLine";
$column->HeaderText = "Produktlinie";
$column->Width = "45%";
$grid_products->MasterTable->AddColumn($column);
$column = new GridBoundColumn();
$column->DataField = "productCode";
$column->HeaderText = "Code";
$column->Width = "10%";
$grid_products->MasterTable->AddColumn($column);
$grid_products->MasterTable->AllowHovering = true;
$grid_products->MasterTable->VirtualScrolling = true;
$grid_products->MasterTable->AllowSelecting = true;
$grid_products->MasterTable->AutoGenerateColumns = false;
$grid_products->MasterTable->AutoGenerateDeleteColumn = false;
$grid_products->MasterTable->AutoGenerateExpandColumn = false;
$grid_products->MasterTable->Width = "600px";
$grid_products->MasterTable->RowAlternative = true;
$grid_products->MasterTable->Pager = new GridPrevNextAndNumericPager();
$grid_products->AllowGrouping = true; //Allow Grouping
$grid_products->MasterTable->ShowGroupPanel = true; //Show Group Panel
$grid_products->Process();
?>
<form id="form1" method="post"> <!-- You should render the grid inside a form tag, in case $grid->AjaxEnabled = false the grid needs a form to operate. -->
<?php echo $koolajax->Render();?>
<?php echo $grid_products->Render();?>
</form>
The ArrayDataSource is filled by this query:
SELECT * FROM products
And this is how it looks before grouping:
This is how it looks like after grouping (note the duplicate groups):
And this is the SQL which created the underlying table:
DROP TABLE IF EXISTS `products`;
CREATE TABLE `products` (
`productCode` varchar(15) NOT NULL,
`productName` varchar(70) NOT NULL,
`productUrl` varchar(50) DEFAULT NULL,
`productLine` varchar(50) NOT NULL,
`productScale` varchar(10) NOT NULL,
`productVendor` varchar(50) NOT NULL,
`productDescription` text NOT NULL,
`quantityInStock` smallint(6) NOT NULL,
`buyPrice` double NOT NULL,
`MSRP` double NOT NULL,
`Image` varchar(50) DEFAULT 'phpGridx/SampleImages/motorcycle.jpg',
`supplierZip` varchar(55) DEFAULT NULL,
PRIMARY KEY (`productCode`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
INSERT INTO `products` (`productCode`, `productName`, `productUrl`, `productLine`, `productScale`, `productVendor`, `productDescription`, `quantityInStock`, `buyPrice`, `MSRP`, `Image`, `supplierZip`)
VALUES
('S10_1678','1969 Harley Davidson Ultimate Chopper','http://harleydavidson.com','Motocycle','1:10','Min Lin Diecastzzzz','This replica features working kickstand, front suspension, gear-shift lever, footbrake lever, drive chain, wheels and steering. All parts are particularly delicate due to their precise scale and require special care and attention.',7933,48.81,95.7,'SampleImages/motorcycle.jpg','91801-3328'),
('S10_1949','1952 Alpine Renault 1300','http://alpinerenault.com','Classic Cars','1:100','Classic Metal Creations','Turnable front wheels; steering function; detailed interior; detailed engine; opening hood; opening trunk; opening doors; and detailed chassis.',7305,98.58,214.3,'SampleImages/classic_car.png','91801-3328'),
('S10_2016','1996 Moto Guzzi 1100i','http://motoguzzi.com','Motorcyclessasdfsasf','1:10','Highway 66 Mini Classics','Official Moto Guzzi logos and insignias, saddle bags located on side of motorcycle, detailed engine, working steering, working suspension, two leather seats, luggage rack, dual exhaust pipes, small saddle bag located on handle bars, two-tone paint with chrome accents, superior die-cast detail , rotating wheels , working kick stand, diecast metal with plastic parts and baked enamel finish.',6625,68.99,118.94,'SampleImages/motorcycle.jpg','91801-3328'),
('S10_4698','2003 Harley-Davidson Eagle Drag Bike',NULL,'Motorcycles','1:10','Red Start Diecast','Model features, official Harley Davidson logos and insignias, detachable rear wheelie bar, heavy diecast metal with resin parts, authentic multi-color tampo-printed graphics, separate engine drive belts, free-turning front fork, rotating tires and rear racing slick, certificate of authenticity, detailed engine, display stand\r\n, precision diecast replica, baked enamel finish, 1:10 scale model, removable fender, seat and tank cover piece for displaying the superior detail of the v-twin engine',5582,91.02,193.66,'SampleImages/motorcycle.jpg','91801-1949'),
('S10_4757','1972 Alfa Romeo GTA','','Classic Cars','1:10','Motor City Art Classics','Features include: Turnable front wheels; steering function; detailed interior; detailed engine; opening hood; opening trunk; opening doors; and detailed chassis.',3252,85.68,136,'SampleImages/classic_car.png','91801-1949'),
('S10_4962','1962 LanciaA Delta 16V',NULL,'Classic Cars','1:10','Second Gear Diecast','Features include: Turnable front wheels; steering function; detailed interior; detailed engine; opening hood; opening trunk; opening doors; and detailed chassis.',6791,103.42,147.74,'SampleImages/classic_car.png','91801-1949'),
('S12_1099','1968 Ford Mustang','http://ford.com','Classic Cars','1:12','Autoart Studio Design','Hood, doors and trunk all open to reveal highly detailed interior features. Steering wheel actually turns the front wheels. Color dark green.',68,95.34,194.57,'SampleImages/classic_car.png','91111'),
('S12_1108','2001 Ferrari Enzo','http://ferrari.com','Classic Cars','1:12','Second Gear Diecast','Turnable front wheels; steering function; detailed interior; detailed engine; opening hood; opening trunk; opening doors; and detailed chassis.',3619,95.59,207.8,'SampleImages/classic_car.png','91801-1949'),
('S12_1666','1958 Setra Bus',NULL,'Trucks and Buses','1:12','Welly Diecast Productions','Model features 30 windows, skylights & glare resistant glass, working steering system, original logos',1579,77.9,136.67,'SampleImages/truck.jpg','91801-1949'),
('S12_2823','2002 Suzuki XREO','n/a','Motorcycles','1:12','Unimax Art Galleries','Official logos and insignias, saddle bags located on side of motorcycle, detailed engine, working steering, working suspension, two leather seats, luggage rack, dual exhaust pipes, small saddle bag located on handle bars, two-tone paint with chrome accents, superior die-cast detail , rotating wheels , working kick stand, diecast metal with plastic parts and baked enamel finish.',9997,66.27,150.62,'SampleImages/motorcycle.jpg','91801-1949'),
('S12_3148','1969 Corvair Monza','N/A','Classic Cars','1:18','Welly Diecast Productions','1:18 scale die-cast about 10\" long doors open, hood opens, trunk opens and wheels roll',6906,89.14,151.08,'SampleImages/classic_car.png','91801-3328'),
('S12_3380','1968 Dodge Charger','http://dodge.com','Classic Cars','1:12','Welly Diecast Productions','1:12 scale model of a 1968 Dodge Charger. Hood, doors and trunk all open to reveal highly detailed interior features. Steering wheel actually turns the front wheels. Color black',9123,75.16,117.44,'SampleImages/classic_car.png','91801-1949'),
('S12_3891','1969 Ford Falcon',NULL,'Classic Cars','1:12','Second Gear Diecast','Turnable front wheels; steering function; detailed interior; detailed engine; opening hood; opening trunk; opening doors; and detailed chassis.xxxxxx',1049,83.05,173.02,'SampleImages/classic_car.png','91801-3328'),
('S12_3990','1970 Plymouth Hemi Cuda',NULL,'Classic Cars','1:12','Studio M Art Models','Very detailed 1970 Plymouth Cuda model in 1:12 scale. The Cuda is generally accepted as one of the fastest original muscle cars from the 1970s. This model is a reproduction of one of the orginal 652 cars built in 1970. Red color.',5663,31.92,79.8,'SampleImages/classic_car.png','91801-1949'),
('S12_4473','1957 Chevy Pickup',NULL,'Trucks and Buses','1:12','Exoto Designs','1:12 scale die-cast about 20\" long Hood opens, Rubber wheels',6125,55.7,118.5,'SampleImages/truck.jpg','91801-3328'),
('S12_4675','1969 Dodge Charger','http://dodge.com','Classic Cars','1:12','Welly Diecast Productions','Detailed model of the 1969 Dodge Charger. This model includes finely detailed interior and exterior features. Painted in red and white.',7323,58.73,115.16,'SampleImages/classic_car.png','91801-1949'),
('S18_1097','1940 Ford Pickup Truck',NULL,'Trucks and Buses','1:18','Studio M Art Models','This model features soft rubber tires, working steering, rubber mud guards, authentic Ford logos, detailed undercarriage, opening doors and hood, removable split rear gate, full size spare mounted in bed, detailed interior with opening glove box',2613,588888.33,116.67,'SampleImages/truck.jpg','91801-3328'),
('S18_1129','1993 Mazda RX-7',NULL,'Classic Cars','1:18','Highway 66 Mini Classics','This model features, opening hood, opening doors, detailed engine, rear spoiler, opening trunk, working steering, tinted windows, baked enamel finish. Color red.',3975,8888.51,1889999.54,'SampleImages/classic_car.png','91801-3328'),
('S18_1342','1937 Lincoln Berline',NULL,'Vintage Cars','1:18','Motor City Art Classics','Features opening engine cover, doors, trunk, and fuel filler cap. Color black',8693,60.62,102.74,'SampleImages/vintage_car.png','91801-3328'),
('S18_1367','1936 Mercedes-Benz 500K Special Roadster','http://mercedesbenz.com','Vintage Cars','1:18','Studio M Art Models','This 1:18 scale replica is constructed of heavy die-cast metal and has all the features of the original: working doors and rumble seat, independent spring suspension, detailed interior, working steering system, and a bifold hood that reveals an engine so accurate that it even includes the wiring. All this is topped off with a baked enamel finish. Color white.',8635,24.26,53.91,'SampleImages/vintage_car.png','91801-1949'),
('S18_1589','1965 Aston Martin DB5',NULL,'Classic Cars','1:18','Classic Metal Creations','Die-cast model of the silver 1965 Aston Martin DB5 in silver. This model includes full wire wheels and doors that open with fully detailed passenger compartment. In 1:18 scale, this model measures approximately 10 inches/20 cm long.',9042,65.96,124.44,'SampleImages/classic_car.png',NULL),
('S18_1662','1980s Black Hawk Helicopter',NULL,'Planes','1:18','Red Start Diecast','1:18 scale replica of actual Army\'s UH-60L BLACK HAWK Helicopter. 100% hand-assembled. Features rotating rotor blades, propeller blades and rubber wheels.',5330,77.27,157.69,'SampleImages/motorcycle.jpg',NULL),
('S18_1749','1917 Grand Touring Sedan','http://fuckingawesome.com','Vintage Cars','1:18','Welly Diecast Productions','This 1:18 scale replica of the 1917 Grand Touring car has all the features you would expect from museum quality reproductions: all four doors and bi-fold hood opening, detailed engine and instrument panel, chrome-look trim, and tufted upholstery, all topped off with a factory baked-enamel finish.',2724,86.7,170,'SampleImages/vintage_car.png',''),
('S18_1889','1948 Porsche 356-A Roadster','http://porsche.com','Classic Cars','1:18','Gearbox Collectibles','This precision die-cast replica features opening doors, superb detail and craftsmanship, working steering system, opening forward compartment, opening rear trunk with removable spare, 4 wheel independent spring suspension as well as factory baked enamel finish.',8826,53.9,77,'SampleImages/classic_car.png',NULL),
('S18_1984','1995 Honda Civic','http://honda.com','Classic Cars','1:18','Min Lin Diecast','This model features, opening hood, opening doors, detailed engine, rear spoiler, opening trunk, working steering, tinted windows, baked enamel finish. Color yellow.',9772,93.89,142.25,'SampleImages/classic_car.png',NULL),
('S18_2238','1998 Chrysler Plymouth Prowler',NULL,'Classic Cars','1:18','Gearbox Collectibles','Turnable front wheels; steering function; detailed interior; detailed engine; opening hood; opening trunk; opening doors; and detailed chassis.',4724,101.51,163.73,'SampleImages/classic_car.png',NULL),
('S18_2248','1911 Ford Town Car',NULL,'Vintage Cars','1:18','Motor City Art Classics','Features opening hood, opening doors, opening trunk, wide white wall tires, front door arm rests, working steering system.',540,33.3,60.54,'SampleImages/vintage_car.png',NULL),
('S18_2319','1964 Mercedes Tour Bus','http://ford.com','Trucks and Buses','1:18','Unimax Art Galleries','Exact replica. 100+ parts. working steering system, original logos',8258,74.86,122.73,'SampleImages/truck.jpg',NULL),
('S18_2325','1932 Model A Ford J-Coupe','http://ford.com','Vintage Cars','1:18','Autoart Studio Design','This model features grille-mounted chrome horn, lift-up louvered hood, fold-down rumble seat, working steering system, chrome-covered spare, opening doors, detailed and wired engine',9354,58.48,127.13,'SampleImages/vintage_car.png',NULL),
('S18_2432','1926 Ford Fire Engine',NULL,'Trucks and Buses','1:18','Carousel DieCast Legends','Gleaming red handsome appearance. Everything is here the fire hoses, ladder, axes, bells, lanterns, ready to fight any inferno.',2018,24.92,60.77,'SampleImages/truck.jpg',NULL),
('S18_2581','P-51-D Mustang',NULL,'Planes','1:72','Gearbox Collectibles','Has retractable wheels and comes with a stand',992,49,84.48,'SampleImages/motorcycle.jpg',NULL),
('S18_2625','1936 Harley Davidson El Knucklehead',NULL,'Motorcycles','1:18','Welly Diecast Productions','Intricately detailed with chrome accents and trim, official die-struck logos and baked enamel finish.',4357,24.23,60.57,'SampleImages/motorcycle.jpg',NULL),
('S18_2795','1928 Mercedes-Benz SSK',NULL,'Vintage Cars','1:18','Gearbox Collectibles','This 1:18 replica features grille-mounted chrome horn, lift-up louvered hood, fold-down rumble seat, working steering system, chrome-covered spare, opening doors, detailed and wired engine. Color black.',548,72.56,168.75,'SampleImages/vintage_car.png',NULL),
('S18_2870','1999 Indy 500 Monte Carlo SS',NULL,'Classic Cars','1:18','Red Start Diecast','Features include opening and closing doors. Color: Red',8164,56.76,132,'SampleImages/classic_car.png',NULL),
('S18_2949','1913 Ford Model T Speedster',NULL,'Vintage Cars','1:18','Carousel DieCast Legends','This 250 part reproduction includes moving handbrakes, clutch, throttle and foot pedals, squeezable horn, detailed wired engine, removable water, gas, and oil cans, pivoting monocle windshield, all topped with a baked enamel red finish. Each replica comes with an Owners Title and Certificate of Authenticity. Color red.',4189,60.78,101.31,'SampleImages/vintage_car.png',NULL),
('S18_2957','1934 Ford V8 Coupe',NULL,'Vintage Cars','1:18','Min Lin Diecast','Chrome Trim, Chrome Grille, Opening Hood, Opening Doors, Opening Trunk, Detailed Engine, Working Steering System',5649,34.35,62.46,'SampleImages/vintage_car.png',NULL),
('S18_3029','1999 Yamaha Speed Boat',NULL,'Ships','1:18','Min Lin Diecast','Exact replica. Wood and Metal. Many extras including rigging, long boats, pilot house, anchors, etc. Comes with three masts, all square-rigged.',4259,51.61,86.02,'SampleImages/motorcycle.jpg','91801-3328'),
('S18_3136','18th Century Vintage Horse Carriage',NULL,'Vintage Cars','1:18','Red Start Diecast','Hand crafted diecast-like metal horse carriage is re-created in about 1:18 scale of antique horse carriage. This antique style metal Stagecoach is all hand-assembled with many different parts.\r\n\r\nThis collectible metal horse carriage is painted in classic Red, and features turning steering wheel and is entirely hand-finished.',5992,60.74,104.72,'SampleImages/vintage_car.png',NULL),
('S18_3140','1903 Ford Model A',NULL,'Vintage Cars','1:18','Unimax Art Galleries','Features opening trunk, working steering system',3913,68.3,136.59,'SampleImages/vintage_car.png',NULL),
('S18_3232','1992 Ferrari 360 Spider red',NULL,'Classic Cars','1:18','Unimax Art Galleries','his replica features opening doors, superb detail and craftsmanship, working steering system, opening forward compartment, opening rear trunk with removable spare, 4 wheel independent spring suspension as well as factory baked enamel finish.',8347,77.9,169.34,'SampleImages/classic_car.png',NULL),
('S18_3233','1985 Toyota Supra',NULL,'Classic Cars','1:18','Highway 66 Mini Classics','This model features soft rubber tires, working steering, rubber mud guards, authentic Ford logos, detailed undercarriage, opening doors and hood, removable split rear gate, full size spare mounted in bed, detailed interior with opening glove box',7733,57.01,107.57,'SampleImages/classic_car.png',NULL),
('S18_3259','Collectable Wooden Train',NULL,'Trains','1:18','Carousel DieCast Legends','Hand crafted wooden toy train set is in about 1:18 scale, 25 inches in total length including 2 additional carts, of actual vintage train. This antique style wooden toy train model set is all hand-assembled with 100% wood.',6450,67.56,100.84,'SampleImages/motorcycle.jpg','91801-3328'),
('S18_3278','1969 Dodge Super Bee',NULL,'Classic Cars','1:18','Min Lin Diecast','This replica features opening doors, superb detail and craftsmanship, working steering system, opening forward compartment, opening rear trunk with removable spare, 4 wheel independent spring suspension as well as factory baked enamel finish.',1917,49.05,80.41,'SampleImages/classic_car.png','91111'),
('S18_3320','1917 Maxwell Touring Car',NULL,'Vintage Cars','1:18','Exoto Designs','Features Gold Trim, Full Size Spare Tire, Chrome Trim, Chrome Grille, Opening Hood, Opening Doors, Opening Trunk, Detailed Engine, Working Steering System',7913,57.54,99.21,'SampleImages/vintage_car.png',NULL),
('S18_3482','1976 Ford Gran Torino',NULL,'Classic Cars','1:18','Gearbox Collectibles','Highly detailed 1976 Ford Gran Torino \"Starsky and Hutch\" diecast model. Very well constructed and painted in red and white patterns.',9127,73.49,146.99,'SampleImages/classic_car.png','91111'),
('S18_3685','1948 Porsche Type 356 Roadster',NULL,'Classic Cars','1:18','Gearbox Collectibles','This model features working front and rear suspension on accurately replicated and actuating shock absorbers as well as opening engine cover, rear stabilizer flap, and 4 opening doors.',8990,62.16,141.28,'SampleImages/classic_car.png',NULL),
('S18_3782','1957 Vespa GS150',NULL,'Motorcycles','1:18','Studio M Art Models','Features rotating wheels , working kick stand. Comes with stand.',7689,32.95,62.17,'SampleImages/motorcycle.jpg','91111'),
('S18_3856','1941 Chevrolet Special Deluxe Cabriolet',NULL,'Vintage Cars','1:18','Exoto Designs','Features opening hood, opening doors, opening trunk, wide white wall tires, front door arm rests, working steering system, leather upholstery. Color black.',2378,64.58,105.87,'SampleImages/vintage_car.png','91111'),
('S18_4027','1970 Triumph Spitfire',NULL,'Classic Cars','1:18','Min Lin Diecast','Features include opening and closing doors. Color: White.',5545,91.92,143.62,'SampleImages/classic_car.png','91111'),
('S18_4409','1932 Alfa Romeo 8C2300 Spider Sport',NULL,'Vintage Cars','1:18','Exoto Designs','This 1:18 scale precision die cast replica features the 6 front headlights of the original, plus a detailed version of the 142 horsepower straight 8 engine, dual spares and their famous comprehensive dashboard. Color black.',6553,43.26,92.03,'SampleImages/vintage_car.png',NULL),
('S18_4522','1904 Buick Runabout',NULL,'Vintage Cars','1:18','Exoto Designs','Features opening trunk, working steering system',8290,52.66,87.77,'SampleImages/vintage_car.png',NULL),
('S18_4600','1940s Ford truck',NULL,'Trucks and Buses','1:18','Motor City Art Classics','This 1940s Ford Pick-Up truck is re-created in 1:18 scale of original 1940s Ford truck. This antique style metal 1940s Ford Flatbed truck is all hand-assembled. This collectible 1940\'s Pick-Up truck is painted in classic dark green color, and features rotating wheels.',3128,84.76,121.08,'SampleImages/truck.jpg',NULL),
('S18_4668','1939 Cadillac Limousine',NULL,'Vintage Cars','1:18','Studio M Art Models','Features completely detailed interior including Velvet flocked drapes,deluxe wood grain floor, and a wood grain casket with seperate chrome handles',6645,23.14,50.31,'SampleImages/vintage_car.png',NULL),
('S18_4721','1957 Corvette Convertible',NULL,'Classic Cars','1:18','Classic Metal Creations','1957 die cast Corvette Convertible in Roman Red with white sides and whitewall tires. 1:18 scale quality die-cast with detailed engine and underbvody. Now you can own The Classic Corvette.',1249,69.93,148.8,'SampleImages/classic_car.png',NULL),
('S18_4933','1957 Ford Thunderbird',NULL,'Classic Cars','1:18','Studio M Art Models','This 1:18 scale precision die-cast replica, with its optional porthole hardtop and factory baked-enamel Thunderbird Bronze finish, is a 100% accurate rendition of this American classic.',3209,34.21,71.27,'SampleImages/classic_car.png',NULL),
('S24_1046','1970 Chevy Chevelle SS 454',NULL,'Classic Cars','1:24','Unimax Art Galleries','This model features rotating wheels, working streering system and opening doors. All parts are particularly delicate due to their precise scale and require special care and attention. It should not be picked up by the doors, roof, hood or trunk.',1005,49.24,73.49,'SampleImages/classic_car.png',NULL),
('S24_1444','1970 Dodge Coronet','','Classic Cars','1:11','Highway 66 Mini Classics','1:24 scale die-cast about 18\" long doors open, hood opens and rubber wheels',4074,32.37,57.8,'SampleImages/classic_car.png',''),
('S24_1578','1997 BMW R 1100 S',NULL,'Motorcycles','1:24','Autoart Studio Design','Detailed scale replica with working suspension and constructed from over 70 parts',7003,60.86,112.7,'SampleImages/motorcycle.jpg',NULL),
('S24_1628','1966 Shelby Cobra 427 S/C',NULL,'Classic Cars','1:24','Carousel DieCast Legends','This diecast model of the 1966 Shelby Cobra 427 S/C includes many authentic details and operating parts. The 1:24 scale model of this iconic lighweight sports car from the 1960s comes in silver and it\'s own display case.',8197,29.18,50.31,'SampleImages/classic_car.png',NULL),
('S24_1785','1928 British Royal Navy Airplane',NULL,'Planes','1:24','Classic Metal Creations','Official logos and insignias',3627,66.74,109.42,'SampleImages/motorcycle.jpg',NULL),
('S24_1937','1939 Chevrolet Deluxe Coupe',NULL,'Vintage Cars','1:24','Motor City Art Classics','This 1:24 scale die-cast replica of the 1939 Chevrolet Deluxe Coupe has the same classy look as the original. Features opening trunk, hood and doors and a showroom quality baked enamel finish.',7332,22.57,33.19,'SampleImages/vintage_car.png',NULL),
('S24_2000','1960 BSA Gold Star DBD34',NULL,'Motorcycles','1:24','Highway 66 Mini Classics','Detailed scale replica with working suspension and constructed from over 70 parts',15,37.32,76.17,'SampleImages/motorcycle.jpg',NULL),
('S24_2011','18th century schooner',NULL,'Ships','1:24','Carousel DieCast Legends','All wood with canvas sails. Many extras including rigging, long boats, pilot house, anchors, etc. Comes with 4 masts, all square-rigged.',1898,82.34,122.89,'SampleImages/motorcycle.jpg',NULL),
('S24_2022','1938 Cadillac V-16 Presidential Limousine',NULL,'Vintage Cars','1:24','Classic Metal Creations','This 1:24 scale precision die cast replica of the 1938 Cadillac V-16 Presidential Limousine has all the details of the original, from the flags on the front to an opening back seat compartment complete with telephone and rifle. Features factory baked-enamel black finish, hood goddess ornament, working jump seats.',2847,20.61,44.8,'SampleImages/vintage_car.png',NULL),
('S24_2300','1962 Volkswagen Microbus',NULL,'Trucks and Buses','1:24','Autoart Studio Design','This 1:18 scale die cast replica of the 1962 Microbus is loaded with features: A working steering system, opening front doors and tailgate, and famous two-tone factory baked enamel finish, are all topped of by the sliding, real fabric, sunroof.',2327,61.34,127.79,'SampleImages/truck.jpg',NULL),
('S24_2360','1982 Ducati 900 Monster',NULL,'Motorcycles','1:24','Highway 66 Mini Classics','Features two-tone paint with chrome accents, superior die-cast detail , rotating wheels , working kick stand',6840,47.1,69.26,'SampleImages/motorcycle.jpg',NULL),
('S24_2766','1949 Jaguar XK 120',NULL,'Classic Cars','1:24','Classic Metal Creations','Precision-engineered from original Jaguar specification in perfect scale ratio. Features opening doors, superb detail and craftsmanship, working steering system, opening forward compartment, opening rear trunk with removable spare, 4 wheel independent spring suspension as well as factory baked enamel finish.',2350,47.25,90.87,'SampleImages/classic_car.png',NULL),
('S24_2840','1958 Chevy Corvette Limited Edition',NULL,'Classic Cars','1:24','Carousel DieCast Legends','The operating parts of this 1958 Chevy Corvette Limited Edition are particularly delicate due to their precise scale and require special care and attention. Features rotating wheels, working streering, opening doors and trunk. Color dark green.',2542,15.91,35.36,'SampleImages/classic_car.png',NULL),
('S24_2841','1900s Vintage Bi-Plane',NULL,'Planes','1:24','Autoart Studio Design','Hand crafted diecast-like metal bi-plane is re-created in about 1:24 scale of antique pioneer airplane. All hand-assembled with many different parts. Hand-painted in classic yellow and features correct markings of original airplane.',5942,34.25,68.51,'SampleImages/motorcycle.jpg',NULL),
('S24_2887','1952 Citroen-15CV',NULL,'Classic Cars','1:24','Exoto Designs','Precision crafted hand-assembled 1:18 scale reproduction of the 1952 15CV, with its independent spring suspension, working steering system, opening doors and hood, detailed engine and instrument panel, all topped of with a factory fresh baked enamel finish.',1452,72.82,117.44,'SampleImages/classic_car.png',NULL),
('S24_2972','1982 Lamborghini Diablo',NULL,'Classic Cars','1:24','Second Gear Diecast','This replica features opening doors, superb detail and craftsmanship, working steering system, opening forward compartment, opening rear trunk with removable spare, 4 wheel independent spring suspension as well as factory baked enamel finish.',7723,16.24,37.76,'SampleImages/classic_car.png',NULL),
('S24_3151','1912 Ford Model T Delivery Wagon',NULL,'Vintage Cars','1:24','Min Lin Diecast','This model features chrome trim and grille, opening hood, opening doors, opening trunk, detailed engine, working steering system. Color white.',9173,46.91,88.51,'SampleImages/vintage_car.png',NULL),
('S24_3191','1969 Chevrolet Camaro Z28',NULL,'Classic Cars','1:24','Exoto Designs','1969 Z/28 Chevy Camaro 1:24 scale replica. The operating parts of this limited edition 1:24 scale diecast model car 1969 Chevy Camaro Z28- hood, trunk, wheels, streering, suspension and doors- are particularly delicate due to their precise scale and require special care and attention.',4695,50.51,85.61,'SampleImages/classic_car.png',NULL),
('S24_3371','1971 Alpine Renault 1600s',NULL,'Classic Cars','1:24','Welly Diecast Productions','This 1971 Alpine Renault 1600s replica Features opening doors, superb detail and craftsmanship, working steering system, opening forward compartment, opening rear trunk with removable spare, 4 wheel independent spring suspension as well as factory baked enamel finish.',7995,38.58,61.23,'SampleImages/classic_car.png',NULL),
('S24_3420','1937 Horch 930V Limousine',NULL,'Vintage Cars','1:24','Autoart Studio Design','Features opening hood, opening doors, opening trunk, wide white wall tires, front door arm rests, working steering system',2902,26.3,65.75,'SampleImages/vintage_car.png',NULL),
('S24_3432','2002 Chevy Corvette',NULL,'Classic Cars','1:24','Gearbox Collectibles','The operating parts of this limited edition Diecast 2002 Chevy Corvette 50th Anniversary Pace car Limited Edition are particularly delicate due to their precise scale and require special care and attention. Features rotating wheels, poseable streering, opening doors and trunk.',9446,62.11,107.08,'SampleImages/classic_car.png',NULL),
('S24_3816','1940 Ford Delivery Sedan',NULL,'Vintage Cars','1:24','Carousel DieCast Legends','Chrome Trim, Chrome Grille, Opening Hood, Opening Doors, Opening Trunk, Detailed Engine, Working Steering System. Color black.',6621,48.64,83.86,'SampleImages/vintage_car.png',NULL),
('S24_3856','1956 Porsche 356A Coupe',NULL,'Classic Cars','1:18','Classic Metal Creations','Features include: Turnable front wheels; steering function; detailed interior; detailed engine; opening hood; opening trunk; opening doors; and detailed chassis.',6600,98.3,140.43,'SampleImages/classic_car.png',NULL),
('S24_3949','Corsair F4U ( Bird Cage)',NULL,'Planes','1:24','Second Gear Diecast','Has retractable wheels and comes with a stand. Official logos and insignias.',6812,29.34,68.24,'SampleImages/motorcycle.jpg',NULL),
('S24_3969','1936 Mercedes Benz 500k Roadster',NULL,'Vintage Cars','1:24','Red Start Diecast','This model features grille-mounted chrome horn, lift-up louvered hood, fold-down rumble seat, working steering system and rubber wheels. Color black.',2081,21.75,41.03,'SampleImages/vintage_car.png',NULL),
('S24_4048','1992 Porsche Cayenne Turbo Silver',NULL,'Classic Cars','1:24','Exoto Designs','This replica features opening doors, superb detail and craftsmanship, working steering system, opening forward compartment, opening rear trunk with removable spare, 4 wheel independent spring suspension as well as factory baked enamel finish.',6582,69.78,118.28,'SampleImages/classic_car.png',NULL),
('S24_4258','1936 Chrysler Airflow',NULL,'Vintage Cars','1:24','Second Gear Diecast','Features opening trunk, working steering system. Color dark green.',4710,57.46,97.39,'SampleImages/vintage_car.png',NULL),
('S24_4278','1900s Vintage Tri-Plane',NULL,'Planes','1:24','Unimax Art Galleries','Hand crafted diecast-like metal Triplane is Re-created in about 1:24 scale of antique pioneer airplane. This antique style metal triplane is all hand-assembled with many different parts.',2756,36.23,72.45,'SampleImages/motorcycle.jpg',NULL),
('S24_4620','1961 Chevrolet Impala',NULL,'Classic Cars','1:18','Classic Metal Creations','This 1:18 scale precision die-cast reproduction of the 1961 Chevrolet Impala has all the features-doors, hood and trunk that open; detailed 409 cubic-inch engine; chrome dashboard and stick shift, two-tone interior; working steering system; all topped of with a factory baked-enamel finish.',7869,32.33,80.84,'SampleImages/classic_car.png',NULL),
('S32_1268','1980’s GM Manhattan Express',NULL,'Trucks and Buses','1:32','Motor City Art Classics','This 1980’s era new look Manhattan express is still active, running from the Bronx to mid-town Manhattan. Has 35 opeining windows and working lights. Needs a battery.',5099,53.93,96.31,'SampleImages/truck.jpg',NULL),
('S32_1374','1997 BMW F650 ST',NULL,'Motorcycles','1:32','Exoto Designs','Features official die-struck logos and baked enamel finish. Comes with stand.',178,66.92,99.89,'SampleImages/motorcycle.jpg',NULL),
('S32_2206','1982 Ducati 996 R',NULL,'Motorcycles','1:32','Gearbox Collectibles','Features rotating wheels , working kick stand. Comes with stand.',9241,24.14,40.23,'SampleImages/motorcycle.jpg',NULL),
('S32_2509','1954 Greyhound Scenicruiser',NULL,'Trucks and Buses','1:32','Classic Metal Creations','Model features bi-level seating, 50 windows, skylights & glare resistant glass, working steering system, original logos',2874,25.98,54.11,'SampleImages/truck.jpg',NULL),
('S32_3207','1950\'s Chicago Surface Lines Streetcar',NULL,'Trains','1:32','Gearbox Collectibles','This streetcar is a joy to see. It has 80 separate windows, electric wire guides, detailed interiors with seats, poles and drivers controls, rolling and turning wheel assemblies, plus authentic factory baked-enamel finishes (Green Hornet for Chicago and Cream and Crimson for Boston).',8601,26.72,62.14,'SampleImages/motorcycle.jpg',NULL),
('S32_3522','1996 Peterbilt 379 Stake Bed with Outrigger',NULL,'Trucks and Buses','1:32','Red Start Diecast','This model features, opening doors, detailed engine, working steering, tinted windows, detailed interior, die-struck logos, removable stakes operating outriggers, detachable second trailer, functioning 360-degree self loader, precision molded resin trailer and trim, baked enamel finish on cab',814,33.61,64.64,'SampleImages/truck.jpg',NULL),
('S32_4289','1928 Ford Phaeton Deluxe',NULL,'Vintage Cars','1:32','Highway 66 Mini Classics','This model features grille-mounted chrome horn, lift-up louvered hood, fold-down rumble seat, working steering system',136,33.02,68.79,'SampleImages/vintage_car.png',NULL),
('S32_4485','1974 Ducati 350 Mk3 Desmo',NULL,'Motorcycles','1:32','Second Gear Diecast','This model features two-tone paint with chrome accents, superior die-cast detail , rotating wheels , working kick stand',3341,56.13,102.05,'SampleImages/motorcycle.jpg',NULL),
('S50_1341','1930 Buick Marquette Phaeton',NULL,'Vintage Cars','1:50','Studio M Art Models','Features opening trunk, working steering system',7062,27.06,43.64,'SampleImages/vintage_car.png',NULL),
('S50_1392','Diamond T620 Semi-Skirted Tanker',NULL,'Trucks and Buses','1:50','Highway 66 Mini Classics','This limited edition model is licensed and perfectly scaled for Lionel Trains. The Diamond T620 has been produced in solid precision diecast and painted with a fire baked enamel finish. It comes with a removable tanker and is a perfect model to add authenticity to your static train or car layout or to just have on display.',1016,68.29,115.75,'SampleImages/truck.jpg',NULL),
('S50_1514','1962 City of Detroit Streetcar',NULL,'Trains','1:50','Classic Metal Creations','This streetcar is a joy to see. It has 99 separate windows, electric wire guides, detailed interiors with seats, poles and drivers controls, rolling and turning wheel assemblies, plus authentic factory baked-enamel finishes (Green Hornet for Chicago and Cream and Crimson for Boston).',1645,37.49,58.58,'SampleImages/motorcycle.jpg',NULL),
('S50_4713','2002 Yamaha YZR M1',NULL,'Motorcycles','1:50','Autoart Studio Design','Features rotating wheels , working kick stand. Comes with stand.',600,34.17,81.36,'SampleImages/motorcycle.jpg',NULL),
('S700_1138','The Schooner Bluenose',NULL,'Ships','1:700','Autoart Studio Design','All wood with canvas sails. Measures 31 1/2 inches in Length, 22 inches High and 4 3/4 inches Wide. Many extras.\r\nThe schooner Bluenose was built in Nova Scotia in 1921 to fish the rough waters off the coast of Newfoundland. Because of the Bluenose racing prowess she became the pride of all Canadians. Still featured on stamps and the Canadian dime, the Bluenose was lost off Haiti in 1946.',1897,34,66.67,'SampleImages/motorcycle.jpg',NULL),
('S700_1691','American Airlines: B767-300',NULL,'Planes','1:700','Min Lin Diecast','Exact replia with official logos and insignias and retractable wheels',5841,51.15,91.34,'SampleImages/motorcycle.jpg',NULL),
('S700_1938','The Mayflower',NULL,'Ships','1:700','Studio M Art Models','Measures 31 1/2 inches Long x 25 1/2 inches High x 10 5/8 inches Wide\r\nAll wood with canvas sail. Extras include long boats, rigging, ladders, railing, anchors, side cannons, hand painted, etc.',737,43.3,86.61,'SampleImages/motorcycle.jpg',NULL),
('S700_2047','HMS Bounty',NULL,'Ships','1:700','Unimax Art Galleries','Measures 30 inches Long x 27 1/2 inches High x 4 3/4 inches Wide. \r\nMany extras including rigging, long boats, pilot house, anchors, etc. Comes with three masts, all square-rigged.',3501,39.83,90.52,'SampleImages/motorcycle.jpg',NULL),
('S700_2466','America West Airlines B757-200',NULL,'Planes','1:700','Motor City Art Classics','Official logos and insignias. Working steering system. Rotating jet engines',9653,68.8,99.72,'SampleImages/motorcycle.jpg',NULL),
('S700_2610','The USS Constitution Ship',NULL,'Ships','1:700','Red Start Diecast','All wood with canvas sails. Measures 31 1/2\" Length x 22 3/8\" High x 8 1/4\" Width. Extras include 4 boats on deck, sea sprite on bow, anchors, copper railing, pilot houses, etc.',7083,33.97,72.28,'SampleImages/motorcycle.jpg',NULL),
('S700_2824','1982 Camaro Z28',NULL,'Classic Cars','1:18','Carousel DieCast Legends','Features include opening and closing doors. Color: White. \r\nMeasures approximately 9 1/2\" Long.',6934,46.53,101.15,'SampleImages/classic_car.png',NULL),
('S700_2834','ATA: B757-300',NULL,'Planes','1:700','Highway 66 Mini Classics','Exact replia with official logos and insignias and retractable wheels',7106,59.33,118.65,'SampleImages/motorcycle.jpg',NULL),
('S700_3167','F/A 18 Hornet 1/72',NULL,'Planes','1:72','Motor City Art Classics','10\" Wingspan with retractable landing gears.Comes with pilot',551,54.4,80,'SampleImages/motorcycle.jpg',NULL),
('S700_3505','The Titanic',NULL,'Ships','1:700','Carousel DieCast Legends','Completed model measures 19 1/2 inches long, 9 inches high, 3inches wide and is in barn red/black. All wood and metal.',1956,51.09,100.17,'SampleImages/motorcycle.jpg',NULL),
('S700_3962','The Queen Mary',NULL,'Ships','1:700','Welly Diecast Productions','Exact replica. Wood and Metal. Many extras including rigging, long boats, pilot house, anchors, etc. Comes with three masts, all square-rigged.',5088,53.63,99.31,'SampleImages/motorcycle.jpg',NULL),
('S700_4002','American Airlines: MD-11S',NULL,'Planes','1:700','Second Gear Diecast','Polished finish. Exact replia with official logos and insignias and retractable wheels',8820,36.27,74.03,'SampleImages/motorcycle.jpg',NULL),
('S72_1253','Boeing X-32A JSF',NULL,'Planes','1:72','Motor City Art Classics','10\" Wingspan with retractable landing gears.Comes with pilot',4857,32.77,49.66,'SampleImages/motorcycle.jpg',NULL),
('S72_3212','Pont Yacht',NULL,'Ships','1:72','Unimax Art Galleries','Measures 38 inches Long x 33 3/4 inches High. Includes a stand.\r\nMany extras including rigging, long boats, pilot house, anchors, etc. Comes with 2 masts, all square-rigged',414,33.3,54.6,'SampleImages/motorcycle.jpg',NULL),
('S10_1111','1999 De Loren','','Classic Car','1:12','Mini','DOA',111,80808,90000,'','91801-3328'),
('11','test','test','test','test','tes','testzzzbbbb',1,100,199,'','91111'),
('S10_111','2000 Benz','N/A','Motocycle','1:50','MINIME','N/A',100,20000,40000,NULL,'91801');
Any suggestions?