So, let’s say I have 10 rows in my database. However, after the mysql query, only 9 rows are being displayed in the html table. I need every row from the database to be displaye
This is because your query is //select * from periods WHERE id < $id ORDER BY id DESC LIMIT 1; your first $id will be always equal id.