Welcome Guest, Not a member yet? Register   Sign In
How to classify in the good categories?
#3

[eluser]Amalgame[/eluser]
Hi gRoberts,

That's right, I want to display entries in each category that are bound by the table bc_ids!

Currently with only one request I get my display has three categories and my entries but when I use the group_by for "Frontend" it shows me an input on two ...

Code:
public function view()
{
  $this->db->where('t_id', $this->uri->segment(3));
  $query = $this->db->get('ids');

  if ( $query->num_rows() >= 1 )
  {
   $this->db->from('categories c');
   $this->db->join('ids i', 'c.c_id = i.c_id', 'inner');
   $this->db->join('hosts h', 'h.h_id = i.h_id', 'inner');
   $this->db->where('i.t_id', $this->uri->segment(3));
   $this->db->group_by('i.c_id');
   $query = $this->db->get();

   $data = array(
    'values' => $query->result()
   );

   $this->parser->parse('roster_view', $data);
  }
  else
  {
   redirect('roster');
  }
}


I do not understand the purpose of your select?

Thank you for your help


Messages In This Thread
How to classify in the good categories? - by El Forum - 05-13-2012, 05:45 PM
How to classify in the good categories? - by El Forum - 05-14-2012, 02:31 AM
How to classify in the good categories? - by El Forum - 05-14-2012, 03:18 AM
How to classify in the good categories? - by El Forum - 05-14-2012, 03:40 AM
How to classify in the good categories? - by El Forum - 05-14-2012, 05:08 AM
How to classify in the good categories? - by El Forum - 05-14-2012, 05:27 AM
How to classify in the good categories? - by El Forum - 05-14-2012, 05:34 AM
How to classify in the good categories? - by El Forum - 05-14-2012, 05:39 AM
How to classify in the good categories? - by El Forum - 05-14-2012, 05:42 AM
How to classify in the good categories? - by El Forum - 05-14-2012, 06:07 AM
How to classify in the good categories? - by El Forum - 05-14-2012, 06:16 AM
How to classify in the good categories? - by El Forum - 05-14-2012, 06:37 AM
How to classify in the good categories? - by El Forum - 05-14-2012, 06:38 AM
How to classify in the good categories? - by El Forum - 05-14-2012, 07:53 AM
How to classify in the good categories? - by El Forum - 05-14-2012, 07:57 AM
How to classify in the good categories? - by El Forum - 05-14-2012, 08:10 AM
How to classify in the good categories? - by El Forum - 05-14-2012, 08:13 AM
How to classify in the good categories? - by El Forum - 05-14-2012, 08:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB