have a border for blank cells
Posted: Fri Sep 25, 2009 10:32 pm
Hi, I have a table created in php that has an embedded if statement.. I need to make any blank cells in the table to have a border just as the populated cells ..take a look, and you'll see what I mean.. Thanks
Code: Select all
<?php
print"
<tr><th colspan=5 align=center> <font size=5 color=maroon>SCORECARD</th></tr></font>
<TR><TH width='50%'rowspan='2'><TH colspan='3'>Effect on Your Credit File
<TH rowspan='2' width ='5%'> Affecting Your Credit Score
<TR><TH width ='5%'>Negative<TH width ='5%'>Neutral<TH width ='5%'>Positive</th></tr>";?>
<TR><TH align=left>The age of your file<TD align=center><?php if($Months<=6) {echo "X";} elseif($Months<=12) {echo "";} else {echo "";}?><TD align=center><?php if($Months<=6) {echo "";} elseif($Months<=12){echo"X";} else {echo"";}?><TD align=center><?php if($Months<=6) {echo "";} elseif($Months<=12){echo"";} else {echo"X";}?><TD align=center>