Can Not add new row Table when update database

Can Not add new row Table when update database

Trong_PhanTrong_Phan Posts: 2Questions: 1Answers: 0
edited March 2020 in Free community support

Hello, I'm try to show data from database to dataTable but when I update my database (add new row), my table not add this row until I use my admin account to reload my website and it's not available when User reload. I use mysqli to connect my database. Thanh you.

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,112Questions: 1Answers: 2,583
    Answer ✓

    It sounds like you may need to call ajax.reload() to get the new data. The browser has no idea that new data has been added to the database, so you need to force that reload.

    Colin

  • Trong_PhanTrong_Phan Posts: 2Questions: 1Answers: 0
    edited March 2020

    Thanks it works.

This discussion has been closed.