Welcome Guest, Not a member yet? Register   Sign In
Displaying session on view with array
#1

[eluser]redraw[/eluser]
Hallo All,

Sorry for my bad English
i have an ccontroller
Code:
$data = $this->fungsi->accept_data(array_keys($_POST));
        
    $code = $this->input->post('code');
    $keterangan = $this->input->post('keterangan');
    $keterangan = strtoupper($keterangan);
    $nilai = $this->input->post('nilai');
    $nilai = str_replace(',','',$nilai);
            
    
    $data = array(
    'code'=>$code,
    'keterangan'=>$keterangan,
    'nilai'=>$nilai
    );
        
        
    $this->session->set_userdata($data);
    $this->load->view('haluser/gl_transenjur_umum', $data);
i want show the session on view, there is the view code..
Code:
<?php foreach($this->session->userdata() as $rows):?>
<td>&lt;?php echo $rows['code'];?&gt;</td>
<td>&lt;?php echo $rows['keterangan'];?&gt;</td>
<td>&lt;?php echo $rows['nilai'];?&gt;</td>
<td align="center">
&lt;?php endforeach; ?&gt;


but it not show..
please help

Thank you


Messages In This Thread
Displaying session on view with array - by El Forum - 04-19-2011, 08:06 PM
Displaying session on view with array - by El Forum - 04-20-2011, 04:49 AM
Displaying session on view with array - by El Forum - 04-21-2011, 04:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB