CodeIgniter (Expression Engine Database Class) Get Single Value From Select Statement

Posted 11 months ago

Find more on CodeIgniter Active Class here and more on Expression Engine Database Class here.


$results = ee()->db->order_by('id')
  ->limit(1)
  ->get('col_name');

$col_name = $results->row('col_name');