Hi All.
Please I need all your help in this matter... I'm starting to program and I'm writing a little code as following:
I have a test.php querying every 20 sec a table in a mysql database requesting a value (0 or 1).
For first time the value of the table will be in 0, which means "off".
Once I change the value to "1" in the table, How can I do in Javascript to reload the website just 1 time? and keep querying the database until I change it again to "0" and refresh again??
In other words, I need to refresh all the content of the website in javascript when I change a value in the database from 0 to 1 and viceversa.
Please I need help with this.
Thanks in advance.
Eduard.
Please I need all your help in this matter... I'm starting to program and I'm writing a little code as following:
I have a test.php querying every 20 sec a table in a mysql database requesting a value (0 or 1).
For first time the value of the table will be in 0, which means "off".
Once I change the value to "1" in the table, How can I do in Javascript to reload the website just 1 time? and keep querying the database until I change it again to "0" and refresh again??
In other words, I need to refresh all the content of the website in javascript when I change a value in the database from 0 to 1 and viceversa.
Please I need help with this.
Thanks in advance.
Eduard.