Unserialize ci_sessions |
[eluser]Omaplie[/eluser]
Hi, I need your help I would like to display all online members thanks to ci_sessions database. So, in my controller i write : Code: function get_users_online() In my model, the request : Code: function get_users_online_model() And in my view : Code: <?php foreach($users_online as $user_online): ?> And this code display me this : Quote:a:5:{s:5:"login";s:22:"[email protected]";s:8:"id_unite";s:1:"1";s:10:"nom_membre";s:7:"Piu";s:13:"prenom_membre";s:4:"Piu";s:6:"logged";b:1;} I just would like to display : Quote:- Piu Piu I think that, it's necessary to unserialize but that doesn't work. Please help me Thank you a lot |
Messages In This Thread |
Unserialize ci_sessions - by El Forum - 01-02-2012, 04:11 PM
|