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 Mon, 11 Mar 2019 15:47:20 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|