$data['MEMBERSDATA'] = $this->db->where('UserName', $this->session->userdata('UserName'))->order_by("id", "DESC")->get('users')->row();
public function index()
{
$data['MEMBERSDATA'] = $this->db->where('UserName', $this->session->userdata('UserName'))->get('users')->row();
diğeri ise,
public function Duzenle($RobotID)
{
$data['MEMBERSDATA'] = $this->db->where('UserName', $this->session->userdata('UserName'))->get('users')->row();