Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. <?php
  2. // Pagination::show("SOME SQL", "SOME HTML");
  3.  
  4. public static function show($sql, $html)
  5. {
  6. global $db;
  7.  
  8. $links = self::generateLinks();
  9.  
  10. $q = $db->execute($sql . " LIMIT " . self::$curRow . ", " . self::$rowsPerPage);
  11.  
  12. $show = '';
  13.  
  14. while($r = $db->fetchassoc($q))
  15. {
  16. $show .= $html;
  17. }
  18.  
  19. return($links . $show . $links);
  20. }
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement