1
Mazar
All of a sudden module pagination not working now
  • 2009/7/28 20:04

  • Mazar

  • Not too shy to talk

  • Posts: 191

  • Since: 2009/1/4 0


Fatal error: Call to a member function renderNav() on a non-object in C:\xampp\htdocs
here is the code
if(isset($_GET['recordstart'])) $recordstart = intval($_GET['recordstart']); 
    include 
XOOPS_ROOT_PATH.'/class/pagenav.php';
    
$result = $xoopsDB->queryF("SELECT * FROM ".$xoopsDB->prefix('columists')."");
    
$recordtotal = mysql_num_rows($result);
    
$recordsperpage = 2;
    if (!
$recordstart) $recordstart = 0;
    if (
$recordtotal) $nav = new XoopsPageNav($recordtotal, $recordsperpage, $recordstart, 'recordstart', '');
    echo 
$nav->renderNav(4);
What can be the problem in above code