Posts

Pagination using JQuery

Image
If you have a large number of pages, then use pagination to each page. This tutorial helps you when you want to produce paging on page. Use this code for pagination using JQuery : <!DOCTYPE html> <html lang="en"> <head>   <title>Pagination using JQuery</title>   <meta charset="utf-8">   <meta name="viewport" content="width=device-width, initial-scale=1">   <link rel="stylesheet"   href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">   <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>   <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>   <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script> <script src="https://ajax.googlea

Product search with pagination in Codeigniter

Image
All product listing will not be load on same page but it will be divided into different web page. Hence, we add pagination for product listing. Follow steps for product search with pagination : 1.  Database : -- -- Database: `searchfilter` -- -- -------------------------------------------------------- -- -- Table structure for table `product` -- CREATE TABLE `product` (   `pid` int(11) NOT NULL,   `ptitle` varchar(255) NOT NULL,   `pstatus` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; INSERT INTO `product` (`pid`, `ptitle`, `pstatus`) VALUES (1, 'Chumbak', 1), (2, 'Pink Set of 3 Folk Framed Wall Paintings', 1), (3, 'Rajasthan Decor Yellow Bedsheet ', 1), (4, 'Multi-Coloured Printed Cotton Bedsheet', 1), (5, 'Cotton Double Bedsheet', 1), (6, 'Navy Blue Printed Fit and Flare Dress', 1), (7, 'Red Checked Shirt Dress', 1), (8, 'Blue Denim Printed Fit a