In case you've missed it, you are looking at an older version of the website. Checkout our latest version, we promise you will love it 😍

or_like

void or_like( mixed $field [ , string $match [, string $side] ] )
Quick Description: Same as or_like of codeigniter for the table list

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

For more you can also read codeigniter active record documentation

Example:

function example_with_or_like() {
 
    $crud = new grocery_CRUD();
 
    $crud->like('productName','Moto');
    $crud->or_like('productName','Car');
    $crud->or_like('productName','Bicycle');
 
    $crud->set_table('products');
    $crud->columns('productName','buyPrice');
 
    $output = $crud->render();
 
    $this->_example_output($output);
}