Welcome Guest, Not a member yet? Register   Sign In
Store multiple "identical" arrays in a session - confused about variable/dynamic variables
#5

[eluser]munkeh[/eluser]
Yeah, I found that out when I tried to get the data back out of the session Smile

I was like 'wait a second, how am I supposed to know the session value before I look at the session value?'

So now I have a parts array in the session indexed by unique serial number..
Code:
$parts_array = $this->session->userdata('add_parts');
foreach($parts_array as $part)
{
    // do things to $part['removed_serial_number']
}
.. works just fine, problem solved and it's time for a coffee. Thanks again!


Messages In This Thread
Store multiple "identical" arrays in a session - confused about variable/dynamic variables - by El Forum - 08-19-2010, 10:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB