Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <?php
  2. include("koneksi.php");
  3. $per_page = 2;
  4. $sqlc = "show columns from tb_pagination ";
  5. $rowsc = mysql_query($sqlc);
  6. $cols = mysql_num_rows($rowsc);
  7. $page = $_REQUEST['page'];
  8.  
  9. $start = ($page-1)*2;
  10. $sql = "select * from tb_pagination order by id limit $start,2";
  11. $rows2 = mysql_query($sql);?>
  12. <?php while ($rows = mysql_fetch_assoc($rows2)) {?>
  13.  
  14. <div class="isi">
  15. <span class="kode"><?PHP echo $rows ['id'];?></span>
  16. <?php echo $rows['isi'];?></div>
  17. <?php }?>