Код: Выделить всё
super_admin_staffСтолбец «роль» соответствует столбцу «id» super_admin_roles.
Моя модель:
Код: Выделить всё
function superAdminStaff()
{
$this->db->select('*');
$this->db->from('super_admin_staff');
$this->db->join('super_admin_roles', 'super_admin_staff.role = super_admin_roles.id');
$query = $this->db->get();
$result = $query->result();
return $result;
}
Подробнее здесь: https://stackoverflow.com/questions/592 ... ble-in-the
Мобильная версия