Let’s say I have a table like this
ID | DATETIME | VALUE
1 | 2011-12-10 01:22:46 | NO
and for example real DATETIME now is 2011-12-10 00:22:46
I want the VALUE updated to YES when the DATETIME now is the same with the DATETIME on the table.
how to do this?
use jquery ajax to make a heartbeating to the server each lets say half second in order to work with the delay if happens
1- download jquery or include it online
2- right this in a page that always opened I will give another solution if its not open
the above code send a request to page named ajaxChecker.php
then you need in that page to connect to the database
I will assume you now that
and in that
make a query
“);
Please check the reserved words for mysql and if you can’t modify them make sure they are between “
read about cronjobs to start it