Welcome Guest, Not a member yet? Register   Sign In
how to create the detail for every row of the table
#2

[eluser]Dam1an[/eluser]
I would make the link be
Code:
<?=anchor('member/details/'.$row->ID, 'Details')?>
That will include the members ID in the URL, such as member/details/123

In the member controller, add something like this
Code:
function details($id) {
  // This should really be done in a model, but is here for simplicity sake
  $this->db->where('id', $id);
  $user = $this->db->get('members')->row();
  
  // Either create veriables for each member attribute, or pass the user object to your view, and display everything in the way of your choosing
}

Make sense?


Messages In This Thread
how to create the detail for every row of the table - by El Forum - 04-25-2009, 11:04 AM
how to create the detail for every row of the table - by El Forum - 04-25-2009, 11:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB