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

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
Reply


Messages In This Thread
RE: [Newbie] Need help to display results. - by zahhar - 03-10-2020, 03:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB