I have a div and within it I call a method of a class in PHP that shows some information from the database.
Something like that
<div id="Ejemplo">
<?php $ejemplo = new ClaseYoQueSe(); echo $ejemplo->Mostrar_dato(); ?>
</div>
The idea is that this div can be updated every X time without the need for the user to do a full page rewind.
Thanks in advance!
And out of curiosity, is there any way to update only when the value changes, in order to avoid unnecessary updating? I guess not, because somehow you have to know if the data has changed, and you should also evaluate it every X time.