Posts

Showing posts with the label Category Filter in Codeigniter

Category Filter in Codeigniter

Image
Filter Products as per Category using Codeigniter 1.   Database  -- -- Table structure for table `category` -- CREATE TABLE `category` (   `c_id` int(11) NOT NULL,   `c_name` varchar(100) NOT NULL,   `c_status` int(1) NOT NULL DEFAULT '1' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `category` -- INSERT INTO `category` (`c_id`, `c_name`, `c_status`) VALUES (1, 'JACKET', 1), (2, 'SHIRT', 1), (3, 'DRESS MATERIAL', 1); -- -------------------------------------------------------- -- -- Table structure for table `product` -- CREATE TABLE `product` (   `pid` int(11) NOT NULL,   `c_id` int(11) NOT NULL,   `ptitle` varchar(255) NOT NULL,   `status` int(11) NOT NULL DEFAULT '1' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `product` -- INSERT INTO `product` (`pid`, `c_id`, `pti...