I have the following code..
echo "<table align='center' border='1': bordercolor='silver'>";
echo "<tr>";
echo "<td align='center' width='200'>" . "<h4> "."Course" . " " . "</td>";
//echo "<td>" . " " ."</td>";
echo "<td align='center' width='200'>" . "<h4> "."Classes Attended" . " " . "</td>";
//echo "<td>" . " " ."</td>";
echo "<td align='center' width='200'>" . "<h4> "."Classes Missed" . " " . "</td>";
echo "</tr>";
//echo "</table>";
echo "<tr>";
while($row = mysql_fetch_array($resultAttendancePercent)){
echo "<br />";
//echo "<td align='center' width='200'>".$row['st_classes_attempt'] . "</td>";
//echo "<table border='1': border-color: silver;'>";
echo "<tr>";
echo "<td align='center' width='200'>".$row['course_name'] . "</td>";
echo "<td align='center' width='200'>".$row['st_classes_attempt'] . "</td>";
echo "<td align='center' width='200'>".$row['st_classes_missed'] . "</td>";
echo "</br>";
echo "</tr>";
echo "</table>";
}
echo "</tr>";
}
I am retrieving three columns from the database, but only one row is fetched in the table the other one is bieng displayed out of it. Can some one find out my mistake in my table code?