I'm trying to make a page that fetches information from a database and posts it to a webpage. I tried using the "table border" and "table-height"command, but I think Ive done it wrong. Because whenever I echo something now, it shows up above the table, even though the code is underneath the "table" code. Take a look at my code (You shouldnt care about the variables I set as they may not match each other. Do not worry about this. The only thing I want to fix is the table)
<?php
include 'connection.php';
echo "<table border='2' style='border-collapse: collapse'>";
echo "<th>ID</th><th>Name</th><th>Special</th><th>Size</th>";
while($elev = mysql_fetch_array($resultstudent)){
echo "<h4> " . $student['Student'] . $student['Room'] . " </h4>";
//echo "<h4> has rom " . $ev['Rom'] . "</h4>";
}
echo "<h1> list of rooms </h1>";
while($rom = mysql_fetch_array($resultroom)){
echo "<tr><td>" .$rom['Room ID'] . "" .$rom['Roomname'] ."" . $rom['Special'] ."</td><td>" . $rom['Size'] . ";
}
?>