[eluser]spagi[/eluser]
Hi i have a problem with create user'session data ....I want to creat eschop'basket ....If i am "buy" only one item, It's everithing OK. But if i "buy" more ....I have in basket only the last item .
Can anyone explain what is wrong?
Code:
function save(){
$array=array('name'=>$this->uri->segment(4),
'table'=>$this->uri->segment(3),
'varianta'=>$_POST['varianta'],
'num'=>$_POST['num']
);
$this->session->set_userdata($array);
$this->load->helper('url');
redirect('/eshop/');