You pretty much have it.. Here is what you will most likely want:
<?php
if (!empty($row_rsVandyDivAddresses['Address']) && strlen (trim ($row_rsVandyDivAddresses['Address'])) > 0)
{
echo $row_rsVandyDivAddresses['Address']) . '<br>'; }
?>
Feel free to format as you wish.
Jordan S. Jones
Robb Kerr wrote:
I'm a PhP /MySQL newbie so please excuse the simple question. I'm returning[snip]
results from a MySQL query on a webpage. My code includes...
I've tried...
<?php if (!empty($row_rsVandyDivAddresses['Address']) echo $row_rsVandyDivAddresses['Address']); ?>
but don't know how to include the line break <br> in the if statement.
Any help is greatly appreciated, Robb
-- I am nothing but a poor boy. Please Donate.. https://www.paypal.com/xclick/business=list%40racistnames.com&item_name=Jordan+S.+Jones&no_note=1&tax=0¤cy_code=USD
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php