Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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
To: fchbmh@hotmail.com
Subject: 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
http://www.cartweaver.com/
Complete Shopping Cart Application for
Dreamweaver, available in PHP and ColdFusion
Stay updated - http://blog.cartweaver.com/
>
Copy link to clipboard
Copied
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
To: fchbmh@hotmail.com
Subject: 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
http://www.cartweaver.com/
Complete Shopping Cart Application for
Dreamweaver, available in PHP and ColdFusion
Stay updated - http://blog.cartweaver.com/
>
Copy link to clipboard
Copied
How can I put a piece of code in this reply so it shows as code rather than a blank box? I tried putting in quotes and that didn't work.
Copy link to clipboard
Copied
I figured out the If statement, but have not figured out a Non-breaking space. I tried " "
, but that didn't work. What is the syntax for a non-breaking space?
Find more inspiration, events, and resources on the new Adobe Community
Explore Now