Simple Pagination Using PHP and MySQLi Database CREATE TABLE `users` ( `name` varchar(250) NOT NULL, `age` varchar(250) NOT NULL, `department` varchar(250) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; db.php <?php $con = mysqli_connect("localhost","root","","users"); if (mysqli_connect_errno()){ echo "Failed to connect to MySQL: " . mysqli_connect_error(); die(); } ?> index.php <html> <head> <title>Create Simple Pagination Using PHP and MySQLi </title> <link rel="stylesheet" href="css/bootstrap.min.css"> </head> <body> <div style="width:700px; margin:0 auto;"> <h3>Simple Pagination Using PHP and MySQLi</h3> <table class="table table-striped table-bordered"> <thead> <tr> <th style='width:50px;'>ID</th> <th style='width:150px;'>Name</th> <th style='w...