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

#8
[eluser]InsiteFX[/eluser]
Code:
redirect('controller/function/'.$id, 'refresh');

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

  $row = $result->row();
  return $row->id;
}


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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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