PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
MDB2 with structures Datagrid

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> PEAR
View previous topic :: View next topic  
Author Message
rej



Joined: 18 Nov 2008
Posts: 4

PostPosted: Tue Jun 02, 2009 11:52 am    Post subject: MDB2 with structures Datagrid Reply with quote

Code:

<?php
/*
 * Set User rights
 */


    // set up user-defined error handler
    function errHandler($e) {
      die($e->getMessage());
    }
   
    // include class
    include_once 'Structures/DataGrid.php';
   
    // set error handling for PEAR classes
    PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'errHandler');
   
    // create new datagrid
    $dg = new Structures_DataGrid(10);
   
    // bind datagrid using MDB2 driver   
    $ds_options = array(
      'dsn' => 'mysql://root:[email protected]/project',
    );
    $dg->bind('SELECT userid, login FROM tbl_user_rights', $ds_options, 'MDB2');
   
    // render pager links
    $dg->render('Pager');
   
    // render datagrid
    $dg->render();


   


//$tpl->display('user_rights.tpl');

?>


The above is my code to retrieve data using MDB2. I am getting the below error

Call to undefined function: MDB2_Driver_mysql::_isNewLinkSet(). in C:\wamp\www\project\libs\PEAR\MDB2.php on line 1978

can anyone help me correct my code...?? Sad
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> PEAR All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement