1
I have index.php, which has side by side an insert form and a table that reflects the database, do not need to have timeout, I just want that when I make a new record in the table, it will appear in the table next, without refreshing the page, it looks like the method so far:
function atualizarTabela(){
xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET", "select.php", false);
xmlhttp.send(null);
document.getElementById("tabela").innerHTML=xmlhttp.reponseText;
}
the div:
<div id="tabela"></div>
for now I’m trying to do so, but returns "Undefined"
this page select.php so far only has an echo saying it worked, for testing, but it will select in the database and return in echo, the results of the table.