PHP: working with tr and td with while()
<pre><code>&lt;table border="0" cellspacing="0" cellpadding="0" &gt;
&lt;tr&gt;
&lt;?php 
while ($pF = mysql_fetch_array($stringVisits)) { 
?&gt;
&lt;td class="viewercell" style="color: #CCC; font-size: 10px;"&gt;
&lt;?php 
echo "&lt;a href='profil.php?id=".$BuID."'&gt;";
echo "&lt;img style='margin-right: 5px; width: 61px; height: 80px;'";

if (checkStatus($BuID) == 1) {
    echo 'class="onlineBorder" ';
} else {
    echo 'class="image-xxsmall-border" ';
}
echo " src='images/profilePhoto/thumbs/";
if (!empty($getByProfile["photo_thumb"])) {
    echo $getByProfile["photo_thumb"];
} else {
    echo "noPhoto_thumb.jpg";
}
echo "'&gt;";
?&gt;
&lt;/a&gt;
&lt;/td&gt;

&lt;?php } ?&gt;
&lt;/tr&gt;
&lt;/table&gt;
</code></pre>

<p>This is what i have right now it displays the visiter´s profileimage. Now i would like to have their name under the image too.. but then i need to create another <code>&lt;tr&gt;</code> after this one, and add their name in each <code>&lt;td&gt;</code>. But how can i do that, if i have this while? Should i run another while, to get the names or can i do something smart with this?</p>
