Structures_DataGrid
[ class tree: Structures_DataGrid ] [ index: Structures_DataGrid ] [ all elements ]

Source for file bind-sql.php

Documentation is available at bind-sql.php

  1. <?php
  2. // Setup your database connection
  3. $options = array('dsn' => 'mysql://user:password@host/db_name');
  4.  
  5. // Bind a basic SQL statement as datasource
  6. // Note: ORDER BY and LIMIT clause are automatically added
  7. $test $datagrid->bind('SELECT * FROM my_table'$options);
  8.  
  9. // Print binding error if any
  10. if (PEAR::isError($test)) {
  11.     echo $test->getMessage()
  12. }
  13. ?>

Documentation generated on Mon, 11 Mar 2019 15:47:20 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.