DataGrid
| From: | base64 | Date: | Sat, 07 Jul 2007 11:04:03 +0000 |
| Subject: | DataGrid | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-27636@lists.php.net to get a copy of this message | ||
Hi all..,
i have install pear DataGrid, and running the example
<?php
require 'Structures/DataGrid.php';
// Instantiate the DataGrid
$datagrid =& new Structures_DataGrid();
// Setup your database connection
$options = array('dsn' => 'mysql://root:@localhost/cdcol');
// Bind a basic SQL statement as datasource
$test = $datagrid->bind('SELECT * FROM cds', $options);
// 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 "error disini".$test->getMessage();
}
?>
but i have an error : "Unknown Renderer driver. Please specify an existing
driver".
how to solve this error?..
thanks before