I'm trying to display data from a MySQL table in a html table using php, I've looked at a few tutorials online including answers on StackOverflow... I've implemented it the way said tutorials have described but I am getting no output.
<table border="1px solid black" cellpadding="0px" cellspacing="0px" width="100%">
        <thead>
            <tr>
                <th>Date</th>
                <th>Monday</th>
                <th>Tuesday</th>
                <th>Wednesday</th>
                <th>Thursday</th>
                <th>Friday</th>
                <th>Saturday</th>
                <th>Sunday</th>
            </tr>
        </thead>
            <?php
                include('dbConnect.php');
                $sql = "SELECT * FROM nurses";
                $result = mysql_query($sql);
                while($row = mysql_fetch_assoc($result)) {
                    echo "<tr>";
                    echo "<td>" . $row['idno'] . "</td>";
                    echo "<td>" . $row['surname'] . "</td>";
                    echo "</tr>";
                }
            ?>
</table>
I know that my db connection is successful as I test for this. All that's getting output is the <thead> and then nothing. I don't understand why this isn't working :/
 
     
    