Метод модели участников:
Код: Выделить всё
public function count_all($buildingId)
{
$this->db->where('id', $buildingId);
$query = $this->db->get('building_members');
return $query->num_rows();
}
- id
- building_id
Подробнее здесь: https://stackoverflow.com/questions/425 ... tion-using
Мобильная версия