I need to create a table in HTML that populates the rows and columns with data coming from a specific table in my database. But I want that whenever new data is inserted in this database table, it automatically appears to the user in the HTML table. This is all without doing the entire page load again.
Well for what you describe exergo 2 steps that are necessary.
- About updating the fields, well you need to use a pattern that, if I remember correctly, is the OBSERVER. From x to x time it queries the method and changes if it has content.
I found this example on stackoverflow in English: https://stackoverflow.com/questions/4629642/how-can-i-refresh-a-page-when-a-database-is-updated
Hope this helps