while($row = mysql_fetch_object($rss)) { $campo1 = $row->campo1 != "" ? $row->campo1 : " "; echo '<tr><td>'.$campo1.'</td></tr>'; }