a Table question - CSS or JavaScript

bigcougar

New Member
I have a table that is being loaded with values from a mySQL database.

The problem I have is the table is visible when empty (row height>0) and even when loaded with values, the remaining empty rows are forming an empty space /margin on the bottom of the table.

Here is the link:
http://www.troutsalmonchar.com/Pages/FLY_MAIN_Lines.php


The possible solutions are:

1. I use CSS to hide/show the table or the rows that have values. How is this done?

2. I use javascript to achieve the same effect.


3. I create the table in the PHP script. However I am using AJAX to load the values, and I have no idea if I can put a whole table on the screen using this method.

Any ideas?
 

PixelPusher

Super Moderator
Staff member
The only thing you may be able to do with CSS is to adjust the table display property. You will not be able to any if/else statements. (But i think you know that)

I think you best bet is with javascript.
 
Top