Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Partial Borders in Table displaying data

New Here ,
Aug 18, 2010 Aug 18, 2010

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?

TOPICS
Server side applications
1.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Aug 18, 2010 Aug 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 18, 2010 Aug 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/

>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 19, 2010 Aug 19, 2010

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/

>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 19, 2010 Aug 19, 2010

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 19, 2010 Aug 19, 2010
LATEST

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines