Welcome Guest, Not a member yet? Register   Sign In
[Newbie] Need help to display results.

(03-10-2020, 03:40 PM)zahhar Wrote: Your model uses result() that does not exis on $query object. 
You should use getResult() instead. I also simplified your code a bit: 
PHP Code:
function select_qnum_query()
    $qb $this->builder();
    $query $qb->select('qnum')->where("transaction""landtax")->get();
return $query->getResult();

You could also benefit from AP Response Trait in your controller to get rid of echo, https://codeigniter4.github.io/userguide...onses.html

Still it doesn't run. Does it need ->from('tblkiosk')? I tried to put it but still no result. :(

Messages In This Thread
RE: [Newbie] Need help to display results. - by g4blin - 03-11-2020, 11:55 PM

Theme © iAndrew 2016 - Forum software by © MyBB