Execute( 'SELECT `pt`.`type_handler` ' . 'FROM `'. TABLE_PRODUCTS .'` AS `p` ' . 'LEFT JOIN `'. TABLE_PRODUCT_TYPES .'` AS `pt` ON `pt`.`type_id` = `p`.`products_type` ' . 'WHERE `p`. `products_id` = \'' . (int)$_GET['products_id'] . '\' LIMIT 1' ); if(!$type->EOF) { $_GET['main_page'] = $type->fields['type_handler'] . '_info'; } } }