System:Model:whereBetween

From Aspen Documentation

Searches for values between $start and $end

Since 1.0

Arguments

void whereBetween (string $field, mixed $start, mixed $end, [string $match = 'AND'])

field
Database table field name.
start
Starting value.
end
Ending value.
match
Connecting operator to previous where statement. Default is AND.

Returns

This function does not return an array.

Examples

Example:

$this->APP->model->whereBetween('cost', 0, 55);