Dreamwaever CS4, PHP
I have data being displayed in a table using PHP.
I have the border set at 2.
If a particular cell has data in it, the left and top borders of the cell are displayed. If there is no data in a particular cell, no borders are displayed.
The Table border is fine.
You can see this at http://franklinhaas.com/Adak/TripLists.php
How can I fix this?
Put an if statement in each field that if the field for that record is null place a non-breaking space ( ) in the field. This will make sure you table cells display correctly. IE has a habit of not displaying borders for empty cells.
--
Lawrence Carmer - *Adobe Community Professional*
http://www.Cartweaver.com
Complete Shopping Cart Application for
Dreamweaver, available in PHP and ColdFusion
Stay updated - http://blog.cartweaver.com
Thanks.
Here is a line of code from my site:
|
Would you insert the "if" code for me on this line so I can use it as a sample?
Frank
Date: Wed, 18 Aug 2010 10:41:50 -0600
From: forums@adobe.com
Subject: Re: Partial Borders in Table displaying data Partial Borders in Table displaying data
Put an if statement in each field that if the field for that record is null place a non-breaking space ( ) in the field. This will make sure you table cells display correctly. IE has a habit of not displaying borders for empty cells.
--
Lawrence Carmer - Adobe Community Professional
Complete Shopping Cart Application for
Dreamweaver, available in PHP and ColdFusion
Stay updated - http://blog.cartweaver.com/
>
Apparently my last message embedded the sample code I sent, so here is another try.
"
|
"
Could you put an if statement in that line of code for me to use as an example?
Frank
Date: Wed, 18 Aug 2010 10:41:50 -0600
From: forums@adobe.com
Subject: Re: Partial Borders in Table displaying data Partial Borders in Table displaying data
Put an if statement in each field that if the field for that record is null place a non-breaking space ( ) in the field. This will make sure you table cells display correctly. IE has a habit of not displaying borders for empty cells.
--
Lawrence Carmer - Adobe Community Professional
Complete Shopping Cart Application for
Dreamweaver, available in PHP and ColdFusion
Stay updated - http://blog.cartweaver.com/
>
North America
Europe, Middle East and Africa
Asia Pacific