Hi,

I have a simple echo code which echoes everything in 3 rows. However it also echoes empty values. Can anyone advise how I can prevent the empty cells in the databsae from being echoed?

So for example if one user only submits 1 skill and another user submits 3 skills. It will echo the 1 skills and 2 empty spaces and then the 3 skills from the second user.

Code:
<div class="eventskillsbox">
				<?php
$query = mysql_query("SELECT skill1, skill2, skill3
FROM users ");	
while($row = mysql_fetch_array($query)) {
?>
<div class="eventskillscell">
<?php echo $row['skill1']; ?>
</div>
<div class="eventskillscell">
<?php echo $row['skill2']; ?>
</div>
<div class="eventskillscell">
<?php echo $row['skill3']; ?>
</div>

<?php
}
?>
	</div>