<?php if (!empty($myrow["address_city"])) { echo "
<tr><td>
Address:
</td><td>
".$myrow["address_street"]."<br />
".$myrow["address_city"].", ".$myrow["address_state"]." ".$myrow["address_zip"]."
</td></tr>"; }
?>
Maybe it's not perfect but here's a segment of code I'm using to display a table row containing address data only if the address_city exists in the database. It works.
But what if somebody lists their city but not their street address? You'll notice that in that case, address_street will display nothing (because there's no data there) but then the line break will still force the city, state, and zip info down a line. Is it possible for me to put another "if not empty" statement around that street address and line break line, which is already within another "if not empty" statement? (And of course that same process can be used for other segments of this compound display)