How Do I Hide Unspecified Items in Blocks?

Permalink
I have a block where the user simply enters text fields in the form editor. Not all of them are required. When the block is added, it prints out all the items. It doesn't display empty items, but the code is still there with empty open and close tags:
<h1 class="itemX"></h1>

The problem I have with this is that if there is default styling for those tags, they will still show up, but with no content.

So... how do I make it so that nothing is "printed out" if the fields are left blank?

PineCreativeLabs
 
12345j replied on at Permalink Best Answer Reply
12345j
just do ifs-
<?php if(isset($db_column)&&$db_column!=""){?><h1 class="itemX"><?php echo $db_column;?></h1><?php } ?>
PineCreativeLabs replied on at Permalink Reply
PineCreativeLabs
Thanks! That worked beautifully!