I have reviewed, and edited, all the code previously discussed and it seems to be working fine now. Thanks very much for your help. Below is the last snippet that seems to be hanging the code:
print('N. of records: '.$result->num_rows.'<br />');
print('<table>');
while ($row = $result->fetch_object()){
print('<tr><td>'.$row['last'].'</td><td>'.$row['first'].'</td></tr>');
}
print('</table>');
I can not find an error in this snippet. As well, I can verify that the connection to the database is working because a test in the code shows that: "N. of records: 5" were selected. Those 5 records all have data in the 'first' and 'last' fields. So, I think there must be an error in the code above which would not cause an error, but would also still cause the table to not be created. To be clear, the table is not just empty, it is not there at all.
Since the table is not being created, my guess was that the error must be in the print('<table>');
line, but for the life of me, I can't see an error in it. Can you?