The first html row is not being displayed

后端 未结 1 514
情深已故
情深已故 2021-01-28 22:45

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

1条回答
  •  抹茶落季
    2021-01-28 23:30

    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.

    0 讨论(0)
提交回复
热议问题