I am wondering if anyone can help? I am trying to output SQL in a table and I want to use functions 'slot' and 'groupnum' to modify the presentation of the output. When I try the code below the results are printing out in an unformatted way above the table rather than in it. Is there any fix for this?
// Table header.
echo '<table>
<tr><td><b>Time Slot</b></td>
<td><b>Group</b></td>
</tr>';
// Fetch and display the records:
while ($row9 = mysqli_fetch_array($result9, MYSQLI_ASSOC)) {
echo '<tr>
<td>' .slot ($row9['slotid']). '</td>
<td>' .groupnum($row9['groupid']). '</td>
</tr>';
}
echo '</table>'; // Close the table.