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

@ dave friend

seems like your suggestion didn't work... to make it worse echo are not manifesting in the browser for the variable values.


anyways this is my issue below

An uncaught Exception was encountered
Type: Error

Message: Call to a member function row() on boolean

Filename: /home/tauenjic/code.tauenji.com/install/application/models/Login_model.php

and this is my code:

<?php

class login_model extends CI_Model
{
function cek_login($where)
{

$this->db->order_by('user_name', 'DESC');
print_r($this->db->get_where('admin', $where)->row());
$query=$this->db->get_where('admin', $where)->row_array();

$data = array();
if($query !== FALSE && $query->num_rows() > 0){
foreach ($query->result_array() as $row) {
$data[] = $row->row_array();
}
}

return $data;

}
}

anywayz hope someone out there is able to help me solve this issue for real
Reply


Messages In This Thread
RE: Call to a member function row() on boolean - by gelson - 11-23-2020, 04:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB