Error message

Help
sqlguy
2007-02-21
2013-04-11
  • sqlguy
    sqlguy
    2007-02-21

    I'm not sure what I did wrong, but I'm getting this error message:
    Fatal error: Call to undefined function: fetchinto() in /home/myname/public_html/cart/lib/layersmenu-common.inc.php on line 697

    Here's the changes I made to the example db treemenu:

    $mid->setDBConnParms('mysql://mysql_login:mysql_pass@localhost/mysql_db');
    //$mid->setDBConnParms('pgsql://postgres:postgres@localhost/phplayersmenu');
    //$mid->setDBConnParms('sqlite:///DUMPS/phplayersmenu');
    $mid->setTableName('category');
    $mid->setTableFields(array(
        'id'         => 'cat_id',
        'parent_id'     => 'cat_parent_id',
        'text'         => 'cat_name',
        'icon'          => '',
        'target'        => '',
        'orderfield'     => '',
        'expanded'     => ''
    ));
    $mid->setPrependedUrl('/~myname/cart/index.php?c=');
    $mid->scanTableForMenu('treemenu1');
    $mid->setSelectedItemById('treemenu1', 10);
    print $mid->newTreeMenu('treemenu1');

     
    • sqlguy
      sqlguy
      2007-02-21

      Nevermind, I made a dumb mistake and I've fixed it.

      Thanks!

       
    • kigoobe
      kigoobe
      2007-03-08

      Well, it would be nice to point out what was that 'dumb' error, as that could have helped others ... :)

       
    • sqlguy
      sqlguy
      2007-03-08

      Honestly I'm not sure at this moment....I think I incorrectly named one of my fields.  sorry.