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 😍

like

void like( mixed $field [ , string $match [, string $side] ] )
Quick Description: Same as codeigniter's like for the list.

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

For more you can also check codeigniter active record

Example:

function example_with_like() {
 
    $crud = new grocery_CRUD();
 
    $crud->like('productName','Motor');
 
    $crud->set_table('products');
    $crud->columns('productName','buyPrice');
 
    $output = $crud->render();
 
    $this->_example_output($output);
}