Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Pagination::show("SOME SQL", "SOME HTML");
- public static function show($sql, $html)
- {
- global $db;
- $links = self::generateLinks();
- $q = $db->execute($sql . " LIMIT " . self::$curRow . ", " . self::$rowsPerPage);
- $show = '';
- while($r = $db->fetchassoc($q))
- {
- $show .= $html;
- }
- return($links . $show . $links);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement