I'm trying to display these items this way:
Howeverafterseveralattemptsthetablealwayslookslikethis:
How do I make the table to get this result?
View
<h2>Apagar evento</h2>
<br>
<table border="1" width "100px" bordercolor="#e2e2e2" style="word-wrap: break-word" cellpadding="10px">
<tr>
<?php
$i=0;
foreach( $showbills as $showbill ):?>
<th colspan="2" scope="col">
<?php echo $this->Form->postLink('Apagar Evento', array('controller'=> 'showbills', 'action'=>'admin_del_event', $showbill['Showbill']['id_showbill']), array('class'=>'event_del', 'title'=>'Apagar Evento'),__('Tem a certeza que quer apagar este Evento?'));?>
</th>
<tr>
<td style="display:inline-block">
<?php echo $showbill['Showbill']['title'];?>
</td>
<td style="display:inline-block">
<?php echo $this->Html->image('showbill/' . $showbill['Showbill']['image'], array('width' => '189px', 'height' => '267px', 'alt' => $showbill['Showbill']['image']));?>
</td>
</tr>
<?php
$i++;
if($i==3){
echo "</tr><tr>";
$i=0;
}
?>
<?php endforeach ?>
</tr>
</table>