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

Hallo All,

Sorry for my bad English
i have an ccontroller
$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(
    $this->load->view('haluser/gl_transenjur_umum', $data);
i want show the session on view, there is the view 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

foreach($this->session->all_userdata() as $rows)

thank you

Theme © iAndrew 2016 - Forum software by © MyBB