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 
DataGrid, DataSource, MDB2

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



Joined: 24 Jul 2007
Posts: 2

PostPosted: Tue Jul 31, 2007 4:34 pm    Post subject: DataGrid, DataSource, MDB2 Reply with quote

I am trying to get MDB2 to work with DataGrid, I tried the following but get back "Unknown Renderer driver. Please specify an existing driver."

<?php
$datagrid =& new Structures_DataGrid(20);
$datadriver = new Structures_DataGrid_DataSource_MDB2();

// Setup your database connection
$sql ="select * from stores";
$options = array('dbc' => $db);

// Bind a basic SQL statement as datasource
$datadriver->bind($sql,$options);


$test = $datagrid->bindDataSource($datadriver);

// Print binding error if any
if (PEAR::isError($test)) {
echo $test->getMessage();
}

// Print the DataGrid with the default renderer (HTML Table)
$test = $datagrid->render();

// Print rendering error if any
if (PEAR::isError($test)) {
echo $test->getMessage();
}
?>

I am using the following..
Structures_DataGrid 0.8.3 beta
Structures_DataGrid_DataSource_MDB2 0.1.10 beta
MDB2 2.3.0 stable
MDB2_Driver_mysql 1.3.0 stable
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
mark



Joined: 07 Jan 2007
Posts: 1051

PostPosted: Tue Jul 31, 2007 4:43 pm    Post subject: Reply with quote

http://pear.php.net/manual/en/package.structures.structures-datagrid.installation.php
Back to top
View user's profile Send private message
h1vp



Joined: 24 Jul 2007
Posts: 2

PostPosted: Tue Jul 31, 2007 4:54 pm    Post subject: DataGrid, DataSource, MDB2 Reply with quote

mark wrote:
http://pear.php.net/manual/en/package.structures.structures-datagrid.installation.php


thanks, u were right missing a package
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Structures 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

'Actiemonitor' online projectmanagement software