or_where

void or_where( mixed $key [, string $value [, bool $escape] ])

It works exactly with the same way as Codeigniter's or_where.

For more you can also read codeigniter active record documentation

Example:

function example_with_or_where() {
 
    $crud = new grocery_CRUD();
 
    $crud->where('productName','Motorcycle');
    $crud->or_where('productName','Car');
    $crud->or_where('productName','Bicycle');
 
    $crud->set_table('products');
    $crud->columns('productName','buyPrice');
 
    $output = $crud->render();
 
    $this->_example_output($output);
}
Latest download
grocery CRUD Newsletter
Join our newsletter to receive our last updates and news.
* indicates required