Skip to content
Advertisement

Row from database not showing correctly except first row

The first row of this table is shown correctly and centered, while the other rows look like they are just being echo’d out instead of looking like they are part of the table.

This is the part of my code:

JavaScript

The code is supposed to add the written user to a database and display all of the users in a table next to it.

Any help is appreciated! Thanks! (whole code listed below)

JavaScript

Advertisement

Answer

You have the end of the table HTML included inside your loop hense the mess. Move that outside the loop and you should be sorted 🙂

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement