Hello All,
Do we have any inbuilt function to pass multiple columns with where condition? For example, I would like to pass two columns like
Thank you,
Siri.
Passing multiple columns with where condition
3 years ago
3 years ago
#1
3 years ago
#2
Hello,
If your desired query is One result use GET ONE WHERE
$result = $this->model->get_one_where('username', 'ajay' AND where = 'user_status', 1);
If your desired query are Many results use GET MANY WHERE
$result = $this->model->get_many_where('username', 'ajay' AND where = 'user_status', 1);
Hint: You can turn on DeBug in the Model.php file in the Engine Folder. Line 13
private $debug = false; Set This line to true
Dan
If your desired query is One result use GET ONE WHERE
$result = $this->model->get_one_where('username', 'ajay' AND where = 'user_status', 1);
If your desired query are Many results use GET MANY WHERE
$result = $this->model->get_many_where('username', 'ajay' AND where = 'user_status', 1);
Hint: You can turn on DeBug in the Model.php file in the Engine Folder. Line 13
private $debug = false; Set This line to true
Dan
3 years ago
#3
Hi,
Thank you, I will check and update you.
Thanks
Siri
Thank you, I will check and update you.
Thanks
Siri