select_max() public method

Generates a SELECT MAX(field) portion of a query
public select_max ( $select = '', $alias = '' ) : object
return object
Example #1
0
 public final function max($Field)
 {
     $this->db->select_max($Field, 'max');
     $Query = $this->db->get($this->_table());
     $Row = $Query->row();
     return $Row->max;
 }