[eluser]rad11[/eluser]
Hello I have a problem with active people that have a logged_in set to 1 in the column user_data.
Is that method correct?
Code:
public function show_active_users(){
$this->db->like('user_data','s:12:"logged_in";i:1;');
$query = $this->db->get('ci_sessions');
return $query;
}
view
Code:
foreach ($query_active_users->result() as $active_users){
echo $active_users->ip_address;
}
result is nothing var_dump too nothing say.