I'm a newbie trying to figure this out. I'll prpbably slap my forehead when someone shows me how to do this.
I'm using an html table to show my results from a database. I am using alternating colors using php to differentiate the different lines of results. I know how to get rid of all cell spaces, I set cellspacing ="0".
My question is this;
If I just want to get rid of the horizontal lines of the cellspaces and still leave in the vertical lines to seperate the columns, how would I do this? I need to have the cell spacing on the bottom and top = "0" and the side spacing of the cell ="1".
This is the layout I am using.
print "<table border=\"0\" cellspacing=\"1\" cellpadding=\"6\"><tr>";
print "<th BGCOLOR=#996633><font color=#FFFFFF><b>SEX</b></font></th><th BGCOLOR=#996633><font color=#FFFFFF><b>STATE</b></font></th><th BGCOLOR=#996633><font color=#FFFFFF><b>YEARLY INCOME</b></font></th><th BGCOLOR=#996633><font color=#FFFFFF><b>BODY TYPE</b></font></th>
<th BGCOLOR=#996633><font color=#FFFFFF><b>AGE</b></font></th>";
print "<td>".$result['sex']."</td><td>".$result['state'].
"</td><td>".$result['yearlyincome']."</td><td>".$result['bodytype'].
"</td><td>".$result['age']."</td></tr>\n";
Thankyou in advance to anyone that can help.
Steve