To je ilustračný príklad. V spojení s tým predchádzajúcim príkladom by to mohlo vyzerať takto:
<table>
<? foreach ($items as $id => $item): ?>
<tr>
<td rowspan="2"><img height="100" src="obrazky_produktu/<?=html($item->id)?>.jpg"></td>
<td><?=html($item->name)?></td>
</tr>
<tr>
<td>Cena: <?=html($item->price)?>,-Kč vč. DPH</td>
</tr>
<tr>
<td>
<form action="index.php?page=pridej" method="post">
<input type="submit" class="bluebutton" value="Koupit">
<input type="hidden" name="id" value="<?=html($item->id)?>">
</form>
</td>
</tr>
<? endforeach ?>
</table>
Alebo teda bez tabuliek by si to dal napr. do ul/li...