[eluser]Thorpe Obazee[/eluser]
[quote author="yudahebat" date="1245172126"]
Code:
<table width="645" border="0" cellpadding="0" cellspacing="0" class="tabel" >
<tr>
<td width="130" class="tabel" align="center"><p>Car Type</p></td>
<td width="110" class="tabel" align="center"><p>Rent date</p></td>
<td width="110" class="tabel" align="center"><p>Return date</p></td>
<td width="80" class="tabel" align="center"><p>Duration</p></td>
<td width="100" class="tabel" align="center"><p>Price/day</p></td>
<td width="110" class="tabel" align="center"><p>Suhtotal</p></td>
</tr>
[b] <?php foreach ($this->session as $row)
{?>[/b]
<tr>
<td width="130" class="tabel"><p><?= row->$this->session->userdata('nama');?></p></td>
<td width="110" class="tabel"><p>..</p></td>
<td width="110" class="tabel"><p>..</p></td>
<td width="80" class="tabel"><p>..day</p></td>
<td width="100" class="tabel"><p>$ <?= row->$this->session->userdata('harga');?></p></td>
<td width="110" class="tabel"><p>$..</p></td>
</tr>
<? } ?>
<tr>
<td colspan="4" class="tabel2"><p><?php echo form_submit('', 'Update your Cart'); ?></p></td>
<td class="tabel2"><p>Total</p></td>
<td class="tabel2"><p>$...</p></td>
</tr>
</table>
but when I run it, its not show anything..
help me please[/quote]
yudahebat, did you really want to iterate through the CI Session object?