[eluser]GamingFusion[/eluser]
I was wandering how i would get the membergroup data from ym database table into the session data.
I have looked at the Active record but haven't been able t find what i want. Here is what i have tried
Code:
<?php
$this->db->where('username', $this->input->post('username'));
$database = $this->db->get('users');
$data = array(
'username' => $this->input->post('username'),
'isLoggedIn' => true,
'membergroup' => $database->result('membergroup')
);
?>