DiigIT | IT Community
No Profile Image
Welcome Guest
New User? Register | Login

Need help with table border line

By: rekha singh | 13 Mar 2010 1:11 pm

I have some trouble with table border line. There is no line if it is blank box or no data from mysql. How can we fill the lines if there is no data from mysql?

Here is my codes
echo "<table border='1'> 
<tr>
<th>Boy/Girl< /th>
<th>First Name</th>
<th>Maiden Name</th>
<th>Last Name</th>
<th>Month (start)</th>
<th>Year (start)</th>
<th>Month (end)</th>
<th>Year (end)</th>
<th>Action</ th>
</tr>

";

while($row = mysql_fetch_ array($result) )
{

echo "<tr>";
echo "<td>" . $row['sex'] . "</td>";
echo "<td>" . $row['first_ name'] . "</td>";
echo "<td>" . $row['maiden_ name'] . "</td>";
echo "<td>" . $row['last_name' ] . "</td>";
echo "<td>" . $row['month_ start'] . "</td>";
echo "<td>" . $row['year_start' ] . "</td>";
echo "<td>" . $row['month_ end'] . "</td>";
echo "<td>" . $row['year_end' ] . "</td>";

echo "<td>" ."<INPUT TYPE=\"View\ " VALUE=\"View\ ">". "</td>";
}

//<INPUT TYPE=SUBMIT VALUE="More information" >
//</FORM>
echo "</tr>"; 

echo "</table>";
}
else {
echo "Database NOT Found ";

 

 


 

Comments

No Comments Posted for this Article.

Leave a comment

Enter the text in the image
img
Can't read?
Type the characters you see in the picture below.


Close Move