[eluser]AtlantixMedia[/eluser]
Hello,
I would really appreciate if someone could help me out with this:
I have a table where I store error messages which are then retrieved by a function, stored in a session cookie, and retrieved once again by the controller for showing.
Code:
$url = 'whatever';
$Msg = $AdminMsg[$code]['AdminMsg_Msg'];
$Tmr = $AdminMsg[$code]['AdminMsg_Timer'];
$str = $Msg . '|' . $Tmr . '|' . $url;
$CI->session->set_userdata('msg', $str);
now for some messages, this works perfectly. for others, it doesn't, meaning the $str is not successfully stored by set_userdata. for example, the msg
"Your optional info has been changed.<br />
You will now be redirected to your account page"
is among those that don't work when it gets assigned to $Msg directly from the db table array. However, if I do this:
Code:
$Msg = "Your optional info has been changed.<br />
You will now be redirected to your account page";
it works perfectly. can someone shed some light on this? I'm totally lost. thanks