how should I show specific data not all data from database?

#7
[eluser]chiquitta[/eluser]
Thanks pickupman and InsiteFX

I think my problem is that I don't know how to pass the id through the url for the user I want to display.

Now I add a new function to get admin id
But I can't pass the id to function get_admin_specific($id)

what should I do now?

Code:
function get_admin_id($id)
{
  $this->CI->db->select('*');
  $this->CI->db->where('id', $id);
  $result = $this->CI->db->get('admin');
  $result = $result->row();

  return $result;
}


Messages In This Thread
how should I show specific data not all data from database? - by El Forum - 12-27-2012, 08:39 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.