Re: [PHP] Avoiding blank lines in HTML when field is empty

2003-10-23 Thread Eugene Lee
On Thu, Oct 23, 2003 at 12:46:29PM -0500, Robb Kerr wrote: : : I'm a PhP /MySQL newbie so please excuse the simple question. I'm returning : results from a MySQL query on a webpage. My code includes... : : :, : : : : , : : Phone: : :

Re: [PHP] Avoiding blank lines in HTML when field is empty

2003-10-23 Thread Jordan S. Jones
Robb, You pretty much have it.. Here is what you will most likely want: if (!empty($row_rsVandyDivAddresses['Address']) && strlen (trim ($row_rsVandyDivAddresses['Address'])) > 0) { echo $row_rsVandyDivAddresses['Address']) . ''; } ?> Feel free to format as you wish. Jordan S. Jones Robb

Re: [PHP] Avoiding blank lines in HTML when field is empty

2003-10-23 Thread Chris Shiflett
--- Robb Kerr <[EMAIL PROTECTED]> wrote: > Here's the problem. Some of the fields are empty (for instance > 'Address') and the way my code is configured a blank line appears in > the returned data when the field is empty. How do I change this code > to add a conditional that only echos the field co

[PHP] Avoiding blank lines in HTML when field is empty

2003-10-23 Thread Robb Kerr
I'm a PhP /MySQL newbie so please excuse the simple question. I'm returning results from a MySQL query on a webpage. My code includes... , , Phone: Email: Here's the problem. Some of the fields are empty (for instance 'Address') an