Select statement CodeIgniter

> Select from database
> Find by attribute

Description


$this->db->select( '*' );
$this->db->from( 'table_name' );
$result = $this->db->get()->result(); // Returns an object
//$result = $this->db->get()->result_array(); // Returns an array
SEE ALSO