I've just started using Codeigniter, and am loving MVC. I have a simple mysql query in a model that returns an array of rows to my controller.
$query = $this->db->get('shows');
return $query->result();
Date information is stored in the database as mysql date (yyyy-mm-dd) and I explode to get month mm and day dd.
What I'm wondering is, is there any way to manually add the variables for month and day of each row to the query result using a simple foreach? I know I could manually add each database field's value to an array, and include the month and day variables, but I'm hoping there's a simpler way of inserting them into the already existing array created by the query.