Welcome Guest, Not a member yet? Register   Sign In
array session didn't work
#7

[eluser]Thorpe Obazee[/eluser]
[quote author="bargainph" date="1245306654"]Do you know when to use result_array()?

Do you know how to use $this->session->userdata()?[/quote]

1. Please refer to my previous post about how you are storing session data in the method of your controller. hint: look at your controller. hint 2: multidimensional array.
[quote author="yudahebat" date="1245306448"]
Code:
$this->session->set_userdata(array('nama' => $this->input->post('nama'),'photo' => $this->input->post('photo'),'harga' => $this->input->post('harga'),'renttgl' => $this->input->post('renttgl'),'rettgl' => $this->input->post('rettgl')));
[/quote]
2. A very good example of how this works is the Cart class(Why don't you try to use that? Please don't ONLY copy and paste code.).
3. Have you looked into the link I posted above about result_array()?


Messages In This Thread
array session didn't work - by El Forum - 06-17-2009, 07:27 PM
array session didn't work - by El Forum - 06-17-2009, 07:29 PM
array session didn't work - by El Forum - 06-17-2009, 07:30 PM
array session didn't work - by El Forum - 06-18-2009, 12:10 AM
array session didn't work - by El Forum - 06-18-2009, 12:37 AM
array session didn't work - by El Forum - 06-18-2009, 12:46 AM
array session didn't work - by El Forum - 06-18-2009, 12:50 AM
array session didn't work - by El Forum - 06-19-2009, 01:36 AM
array session didn't work - by El Forum - 06-19-2009, 02:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB