Welcome Guest, Not a member yet? Register   Sign In
where clause with order_by in codeigniter giving me issue
#5

(03-27-2024, 12:11 AM)prem16 Wrote: Hi All,



I want to add the order_by('uName','DESC'), added like below but giving me issue, bad method execptions.
PHP Code:
$data['work']=$this->work->where('wuFk'session()->get('uId'))->order_by('uName','DESC')->get()->getResult(); 

Hey hi, use orderBy() instead of order_by()

$data['work']=$this->work->where('wuFk', session()->get('uId'))->order_by('uName','DESC')->get()->getResult();
Reply


Messages In This Thread
RE: where clause with order_by in codeigniter giving me issue - by nahaK - 04-03-2024, 10:45 PM



Theme © iAndrew 2016 - Forum software by © MyBB