We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am trying to use Order by after the following query
$this->remote_jobs->get_many_by($jobs_params);
right now above query result is SELECT * FROM hm_jobs WHERE company_id = '1' AND user_id = '6'
hm_jobs
company_id
user_id
I want to add order by within this query... how I will do it?
The text was updated successfully, but these errors were encountered:
this should work:
$this->remote_jobs->order_by('field_to_order_by', 'ASC')->get_many_by($jobs_params);
Sorry, something went wrong.
Thanks, it works. 👍
How I will use WHERE LIKE clause for fetching records from table based on this WHERE LIKE?
It doesn't look like this is implemented currently.
You probably want to copy the order_by function (https://github.com/jamierumbelow/codeigniter-base-model/blob/master/core/MY_Model.php#L747) into a new function for where_like and reference the codeigniter documentation (https://codeigniter.com/user_guide/database/query_builder.html#looking-for-similar-data)
order_by
where_like
No branches or pull requests
I am trying to use Order by after the following query
$this->remote_jobs->get_many_by($jobs_params);
right now above query result is
SELECT * FROM
hm_jobs
WHEREcompany_id
= '1' ANDuser_id
= '6'I want to add order by within this query... how I will do it?
The text was updated successfully, but these errors were encountered: