Message Text |
Hi All,
I have created new page in admin panel.But pagination is not working.
In php file, i am using this code
if (!$page) $page = 1;
if (!$perpage) $perpage = 25;
$start = ($perpage * $page) - $perpage;
$q = $db->select('id,ip,date', 'permanentblacklisttable',"id != ''",'ORDER BY id DESC',"LIMIT $start,$perpage");
$n = $db->numrows($q);
$template->paginate($page, $perpage, $possible);
In Tpl file, i am using this code
{PAGINATION}
But pagination is not working.Can you please help me anyone.
|