I have a database and I want to output the last 5 rows on the database. The model is called 'text'.
<?php for ($j = 0; $j < 5; $j++) {
?>
<tr>
<td><?php echo $text['Text']['id']; ?></td>
<td>
<?php echo $text['Text']['expiration']; ?>
</td>
<td>
<?php echo $text['Text']['title'] . " - " . $text['Text']['body']; ?>
</td>
<td><?php echo $text['Text']['created']; ?></td>
</tr>
<?php } ?>
That should give you an idea of where I'm at.