データベースから結果を取得し、ページに表示しようとしました。しかし、アライメントが正しくありません。どうすれば修正できますか?
ビュー内のコード
<?php
echo "<table align='center'>";
echo "<tr>";
echo "<td> Language ID: </td>";
echo "</tr>";
echo "<tr>";
echo "<td> Language Name: </td>";
echo "</tr>";
echo "<tr>";
echo "<td> Date Posted : </td>";
echo "</tr>";
if ($query == true) {
foreach ($query as $row) {
echo "<tr>";
echo "<td>" . $row -> pk_bint_language_id . "</td>";
echo "<td>" . $row -> vchr_language_name . "</td>";
echo "<td>" . $row -> bint_language_level . "</td>";
echo "<td>" . $row -> dat_updated_date . "</td>";
echo "</tr>";
}
}
echo "</table>";
?>
出力: