Guest User

Data mi5 team

a guest
Jan 18th, 2014
8,255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.47 KB | None | 0 0
  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 }?>
Advertisement
Add Comment
Please, Sign In to add comment