Welcome Guest, Not a member yet? Register   Sign In
Call to a member function row() on boolean
#6

You already assigned $query an row_array then you are reassigning it with
an result_array.

Try this and see if it works, not tested.

PHP Code:
// change this
foreach ($query->result_array() as $row) {
$data[] = $row->row_array();

// to this
foreach ($query->row_array() as $row) { 
$data[] = $row
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: Call to a member function row() on boolean - by InsiteFX - 11-24-2020, 02:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB