Forum Moderators: coopster
I want my format to be:
Name
Address
City, State ZIP
Phone
Email
Website
But if any of those fields are blank, I want them to bump up so there isn't a blank line. Is this possible? Was thinking somehow there could be an "if not null" query on each line or something?
Here's my code (although highly doubtful anyone needs it, very simple LOL):
<?php
$result = mysql_query("SELECT * FROM data WHERE name LIKE '%blah'")
or die(mysql_error());while($row = mysql_fetch_array( $result )) {
echo "<span class='style4'>";
echo $row['name'];
echo "</span><br>";
echo $row['address1']. " <br> "
.$row['city']. ", " .$row['state']. " " .$row['zip']. " <br> "
.$row['email']. " <br> "
.$row['phone']."<br /><br>";
}
?>
Thanks a million!
Melanie