Hi,

I have a code which enables someone to submit a maximum of 3 resource requirements. For example if they require computers, desks and fire extinguishers it will display 3 cells with the details. However if they only require computers and desks it will display an empty cell for the third unused requirement.

What I would like to do is say IF blank do not echo. Would I use something this?


Code:
if ($supplier3 <> "") {

Code:
 <div class="resourceprofilerequirementbox">
			    <div class="resourceprofilerequirementheader">
			   Resource Requirements
			   </div>
			   <div class="resourceprofilerequirement">
			    <div class="resourceprofilesupplier">
		<?php echo (!empty($row['supplier1'])) ? $row['supplier1'] : ''; ?>
	</div>
						    <div class="resourceprofilebudget">
		Requirements: </div>
		<div class="resourcesupplierdetails">
		<?php echo (!empty($row['supplierdetails1'])) ? $row['supplierdetails1'] : ''; ?>
	</div>
				    <div class="resourceprofilebudget">
		Budget: <?php echo (!empty($row['budget1'])) ? $row['budget1'] : ''; ?>
	</div>
		</div>
		
					   <div class="resourceprofilerequirement">
			    <div class="resourceprofilesupplier">
			<?php echo (!empty($row['supplier2'])) ? $row['supplier2'] : ''; ?>
	</div>
						    <div class="resourceprofilebudget">
		Requirements: </div>
			<div class="resourcesupplierdetails">
		<?php echo (!empty($row['supplierdetails2'])) ? $row['supplierdetails2'] : ''; ?>
	</div>
				    <div class="resourceprofilebudget">
		Budget: <?php echo (!empty($row['budget2'])) ? $row['budget2'] : ''; ?>
	</div>
		</div>
	
					   <div class="resourceprofilerequirement">
			    <div class="resourceprofilesupplier">
			<?php echo (!empty($row['supplier3'])) ? $row['supplier3'] : ''; ?>
	</div>
						    <div class="resourceprofilebudget">
		Requirements: </div>
			<div class="resourcesupplierdetails">
		<?php echo (!empty($row['supplierdetails3'])) ? $row['supplierdetails3'] : ''; ?>
	</div>
				    <div class="resourceprofilebudget">
		Budget: <?php echo (!empty($row['budget3'])) ? $row['budget3'] : ''; ?>
	</div>
		</div>