Код: Выделить всё
$this->db->select('MAX(price) as max_package_price, MIN(price) as min_package_price,user_id as user_id');
$results = $this->db->get($this->price)->result();
price title date
------------------------
500 P1 2019-12-31
700 P2 2019-09-15
400 P3 2019-08-14
Подробнее здесь: https://stackoverflow.com/questions/568 ... -max-value
Мобильная версия