![]() |
Session Data - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Session Data (/showthread.php?tid=24423) |
Session Data - El Forum - 11-09-2009 [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 Session Data - El Forum - 11-09-2009 [eluser]Thorpe Obazee[/eluser] Did you really read the User Guide? Session Data - El Forum - 11-09-2009 [eluser]InsiteFX[/eluser] HINT: $this->session->user_data('item', 'value') Enjoy InsiteFX P.S. As bargainph stated it's all in the user guide Session Library. Session Data - El Forum - 11-10-2009 [eluser]GamingFusion[/eluser] ok i got some where but now i for the membergroup is says array Code: <?php I want it to get the row of the member that is logged in Session Data - El Forum - 11-10-2009 [eluser]Mischievous[/eluser] Code: $query = "SELECT * FROM users WHERE username = '".$this->input->post('username')."'"; ?? not sure what your askin Session Data - El Forum - 11-10-2009 [eluser]GamingFusion[/eluser] when i echo the membergroup is returns array still Session Data - El Forum - 11-11-2009 [eluser]GamingFusion[/eluser] does anyone know why it is returning "array" instead of what it should? Session Data - El Forum - 11-11-2009 [eluser]GamingFusion[/eluser] its working now |