Skip to main content
Known Participant
August 18, 2010
Question

Partial Borders in Table displaying data

  • August 18, 2010
  • 1 reply
  • 1200 views

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?

This topic has been closed for replies.

1 reply

Lawrence_Cramer
Inspiring
August 18, 2010

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

pabirdsAuthor
Known Participant
August 18, 2010

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/

>