Source for file bind-sql.php
Documentation is available at bind-sql.php
// Setup your database connection
$options = array ('dsn' => 'mysql://user:password@host/db_name');
// Bind a basic SQL statement as datasource
// Note: ORDER BY and LIMIT clause are automatically added
$test = $datagrid->bind ('SELECT * FROM my_table', $options);
// Print binding error if any
if (PEAR ::isError ($test)) {
echo $test->getMessage ();
Documentation generated on Tue, 18 Dec 2007 11:30:06 -0500 by phpDocumentor 1.4.0. PEAR Logo Copyright © PHP Group 2004.
|