if you are retrieving from a database (which kind?) and there are multiple items but each one has its own info right?
then you should do a "while"
this example for a php/mySQL db combo and I know the code works because it is from one of my sites:
$allnews = @("SELECT NewsTitle, DATE_FORMAT(NewsDate, '%W, %M %e, %Y %T') as date, NewsBody, NewsAuthor, name, email FROM news, users WHERE NewsAuthor=users.ID ORDER BY NewsDate DESC LIMIT 10");
if (!$allnews){
echo ("error performing NEWS query" .
mysql_error() . "</p>");
exit();
}
while ($data = mysql_fetch_array ($allnews)) {
$counter++;
$newstitle = $data["NewsTitle"];
$newsbody = $data["NewsBody"];
$newsdate = $data["date"];
$name = $data["name"];
$email = $data["email"];
?>
<tr><td class="newstitle"><?php echo("$newstitle"); ?></td></tr>
<tr><td class="newsdate"><?php echo(" $newsdate"); ?></td></tr>
<tr><td class="newspost"><?php echo(" $newsbody"); ?> </td></tr>
<tr><td class="newspost"> Posted by:<?php echo("<a href='mailto:$email'>$name </a>"); ?> <br>   </td></tr>
does this make sense?