I would do this by reading the values into 2 different arrays and looping through each seperately, like so:
$ImageArray = array(); // Set the variable
$TextArray = array();
while($r = mysql_fetch_assoc($result)) {
array_push($ImageArray, $r['image']);
array_push($TextArray, $r['text']);
}
// Then loop through each of the arrays
echo "<tr>";
foreach($ImageArray as $v) {
echo "<td width=\"135\" align=\"center\" valign=\"middle\"><img src=\"$v\"></td>";
}
echo "</tr>";
echo "<tr>";
foreach($TextArray as $v) {
echo "<td height=\"31\">$v</td>";
}
echo "</tr>";
Hope that helps,
Matt