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

Login

Who's Online

134 user(s) are online (71 user(s) are browsing Support Forums)


Members: 0


Guests: 134


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits