PHP: while </tr>

Oskii

New Member
i got a problem, where can i place my \[code\]</tr>\[/code\] so it shouldnt get duplicated when its in a while?\[code\]<table border="0" cellspacing="0" cellpadding="0" ><tr><?php while ($pF = mysql_fetch_array($stringVisits)) { $BuID= mysql_real_escape_string($pF['BuID']); $getByInfo = mysql_query("SELECT * FROM users_profile WHERE uID = '$BuID'") or die(mysql_error()); $getByProfile = mysql_fetch_array($getByInfo); $getByInf = mysql_query("SELECT full_name, sex FROM users WHERE id = '$BuID'") or die(mysql_error()); $getByProfil = mysql_fetch_array($getByInf);?><td class="viewercell" style="color: #CCC; font-size: 10px;"><?php echo "<a href='http://stackoverflow.com/questions/3627872/profil.php?id=".$BuID."'>"; echo "<img style='margin-right: 5px; width: 44px; height: 48px; border: 2px solid #FFF; ' src='http://stackoverflow.com/questions/3627872/images/profilePhoto/thumbs/"; if (!empty($getByProfile["photo_thumb"])) { echo $getByProfile["photo_thumb"]; } else { echo "noPhoto_thumb.jpg"; } echo "'>";?></a></td>\[/code\]I would like to close that \[code\]<tr>\[/code\] and start a new one, but how can i do that? If i just put in \[code\]</tr>\[/code\] under the above^ it will duplicate the \[code\]</tr>\[/code\] because its inside the \[code\]while()\[/code\] If i do it after closing \[code\]}\[/code\] the while, i can not use the \[code\]while()\[/code\]
 
Back
Top