SQLite PHP javascript?

0 Cevap php

I have a simple php code which prints data from a SQLite database. Basically $query ="Select A from B". This all works fine. & when the sqlite db updates, i can refresh the page & the new data displays.

Want i am aiming to achieve is to refresh this data automatically every 5-10 seconds without having to reload the entire page. I am also trying to avoid using iframes as there is about 20 of these on the page all displaying different data.

This has been driving me mad the last few days, Does anyone know of a way to do so? My thought have been javascript, jquery or AJAX?

Other than that can you get sqlite data with javascript alone, without php? & then implement something like the below on the element only? without the page reloading??

setTimeout("location.reload();",5000);

Şimdiden teşekkür ederim.

0 Cevap